#include <src/slic3r/Utils/Bonjour.hpp>
|
| typedef std::unordered_map< std::string, std::string > | TxtData |
| |
◆ TxtData
◆ BonjourReply() [1/2]
| Slic3r::BonjourReply::BonjourReply |
( |
| ) |
|
|
delete |
◆ BonjourReply() [2/2]
| Slic3r::BonjourReply::BonjourReply |
( |
boost::asio::ip::address |
ip, |
|
|
uint16_t |
port, |
|
|
std::string |
service_name, |
|
|
std::string |
hostname, |
|
|
BonjourReply::TxtData |
txt_data |
|
) |
| |
1056{
1057 std::string proto;
1058 std::string port_suffix;
1059 if (
port == 443) { proto =
"https://"; }
1060 if (
port != 443 &&
port != 80) { port_suffix = std::to_string(
port).insert(0, 1,
':'); }
1061
1063 if (path[0] !=
'/') {
path.insert(0, 1,
'/'); }
1067}
uint16_t port
Definition Bonjour.hpp:26
TxtData txt_data
Definition Bonjour.hpp:31
boost::asio::ip::address ip
Definition Bonjour.hpp:25
std::string full_address
Definition Bonjour.hpp:29
std::string path() const
Definition Bonjour.cpp:1069
std::string service_name
Definition Bonjour.hpp:27
std::string hostname
Definition Bonjour.hpp:28
References full_address, ip, path(), port, and txt_data.
◆ operator<()
1082{
1083 if (this->
ip != other.ip) {
1084
1085 return this->
ip < other.ip;
1086 } else {
1087 auto cmp = this->
full_address.compare(other.full_address);
1088 return cmp != 0 ? cmp < 0 : this->
service_name < other.service_name;
1089 }
1090}
References full_address, ip, and service_name.
◆ operator==()
◆ path()
| std::string Slic3r::BonjourReply::path |
( |
| ) |
const |
◆ full_address
| std::string Slic3r::BonjourReply::full_address |
◆ hostname
| std::string Slic3r::BonjourReply::hostname |
◆ ip
| boost::asio::ip::address Slic3r::BonjourReply::ip |
◆ port
◆ service_name
| std::string Slic3r::BonjourReply::service_name |
◆ txt_data
| TxtData Slic3r::BonjourReply::txt_data |
The documentation for this struct was generated from the following files: