This commit is contained in:
Jack Garrard 2022-10-26 02:44:09 -07:00
parent a9c3ec4006
commit 53f91b8695

View file

@ -30,7 +30,7 @@ nn::Result SocketClient::init(const char* ip, u16 port) {
in_addr hostAddress = { 0 }; in_addr hostAddress = { 0 };
sockaddr serverAddress = { 0 }; sockaddr serverAddress = { 0 };
sockaddr udpAddress = { 0 }; sockaddr udpAddress = { 0 };
Logger::log("SocketClient::init: %s:%d sock %s\n", ip, port, getStateChar()); Logger::log("SocketClient::init: %s:%d sock %s\n", ip, port, getStateChar());
@ -87,7 +87,6 @@ nn::Result SocketClient::init(const char* ip, u16 port) {
return -1; return -1;
} }
// TODO Find a way around the 41553 constant port
udpAddress.address = hostAddress; udpAddress.address = hostAddress;
udpAddress.port = 0; udpAddress.port = 0;
udpAddress.family = 2; udpAddress.family = 2;