24 #ifndef __NET_MDNS_H__
25 #define __NET_MDNS_H__
71 uint16_t myPriority = 0;
72 uint16_t myWeight = 0;
89 return !(*
this == other);
102 myHostname(
"nobody"),
103 myName(
"_http._tcp.local."),
107 myServiceAddressIpv4(0)
109 memset(myServiceAddressIpv6, 0,
sizeof(myServiceAddressIpv6));
116 bool isServiceRunning() {
return myIsRunning; }
119 myHostname = hostname;
121 void setServicePort(std::uint16_t port) { myPort = port; }
125 myTxtRecord = txt_record;
133 const std::chrono::milliseconds &max_query_time,
136 void executeDiscovery();
141 int openServiceSockets(
int *sockets,
int max_sockets);
144 std::uint16_t myPort;
147 int openClientSockets(
160 uint32_t myServiceAddressIpv4;
161 uint8_t myServiceAddressIpv6[16];
164 #endif // __NET_MDNS_H__
UT_StringHolder myFromAddr
bool operator==(const NET_mDNSQueryResult &other) const
bool operator!=(const NET_mDNSQueryResult &other) const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLuint const GLchar * name
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun