Changes
1 changed files (+0/-6)
-
-
@@ -24,13 +24,7 @@ struct sockaddr_in multicast_addr;multicast_addr.sin_family = AF_INET; // Port is network byte order both in Linux and macOS multicast_addr.sin_port = htons(SOOD_DISCOVERY_SERVER_UDP_PORT); #ifdef __linux__ // Linux uses network byte order for IP addr part. Great consistency. multicast_addr.sin_addr.s_addr = SOOD_DISCOVERY_MULTICAST_IPV4_ADDRESS_BE; #else // Windows and macOS seem to use host byte order. fuck. multicast_addr.sin_addr.s_addr = ntohl(SOOD_DISCOVERY_MULTICAST_IPV4_ADDRESS_BE); #endif int sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd < 0) {
-