Comment out extra udpaddress

This commit is contained in:
Jack Garrard 2022-09-05 03:26:01 -07:00
parent 66c8bb9e1b
commit f417d39f3b

View file

@ -73,14 +73,15 @@ nn::Result SocketClient::init(const char* ip, u16 port) {
this->socket_log_state = SOCKET_LOG_UNAVAILABLE; this->socket_log_state = SOCKET_LOG_UNAVAILABLE;
return -1; return -1;
} }
udpAddress.address = hostAddress; udpAddress.address = hostAddress;
udpAddress.port = nn::socket::InetHtons(41553); udpAddress.port = nn::socket::InetHtons(41553);
udpAddress.family = 2; udpAddress.family = 2;
this->udp_addr = udpAddress; this->udp_addr = udpAddress;
udpAddress.address = hostAddress; // udpAddress.address = hostAddress;
udpAddress.port = nn::socket::InetHtons(57734); // udpAddress.port = nn::socket::InetHtons(57734);
udpAddress.family = 2; // udpAddress.family = 2;
if((result = nn::socket::Connect(this->udp_socket, &udpAddress, sizeof(udpAddress))).isFailure()) { if((result = nn::socket::Connect(this->udp_socket, &udpAddress, sizeof(udpAddress))).isFailure()) {
Logger::log("Udp Socket Connection Failed!\n"); Logger::log("Udp Socket Connection Failed!\n");