tools/hexnet: un-comment problematic sections

Soda
BodgeMaster 2022-08-29 21:06:54 +02:00
parent b4d4ce77b2
commit 209d0828b4
1 changed files with 6 additions and 6 deletions

View File

@ -254,8 +254,8 @@ int main(int argc, char* argv[]){
return EXIT_RUNTIME;
}
//std::thread threadReadFromUDP = std::thread(readFromUDPSocket, udpSocket, mtu);
//threadReadFromUDP.join();
std::thread threadReadFromUDP = std::thread(readFromUDPSocket, udpSocket, mtu);
threadReadFromUDP.join();
delete udpSocket;
return EXIT_SUCCESS;
@ -283,8 +283,8 @@ int main(int argc, char* argv[]){
return EXIT_RUNTIME;
}
//std::thread threadReadFromTCP6 = std::thread(readFromTCP6Socket, tcp6Socket, mtu);
//threadReadFromTCP6.join();
std::thread threadReadFromTCP6 = std::thread(readFromTCP6Socket, tcp6Socket, mtu);
threadReadFromTCP6.join();
delete tcp6Socket;
return EXIT_SUCCESS;
@ -313,8 +313,8 @@ int main(int argc, char* argv[]){
return EXIT_RUNTIME;
}
//std::thread threadReadFromTCP = std::thread(readFromTCPSocket, tcpSocket, mtu);
//threadReadFromTCP.join();
std::thread threadReadFromTCP = std::thread(readFromTCPSocket, tcpSocket, mtu);
threadReadFromTCP.join();
delete tcpSocket;
return EXIT_SUCCESS;