openServiceSockets if statement always true
Opened this issue · 0 comments
pwinkler-ds commented
Here num_sockets is always 0 why is the check done then?
int mDNS::openServiceSockets(int *sockets, int max_sockets) {
// When receiving, each socket can receive data from all network interfaces
// Thus we only need to open one socket for each address family
int num_sockets = 0;
// Call the client socket function to enumerate and get local addresses,
// but not open the actual sockets
openClientSockets(0, 0, 0);
if (num_sockets < max_sockets) {
sockaddr_in sock_addr{};
sock_addr.sin_family = AF_INET;int mDNS::openServiceSockets(int *sockets, int max_sockets) {