mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-03 14:26:15 +00:00
Support of 1Gps+ internet
This commit is contained in:
@@ -60,9 +60,8 @@ void UDPClientMain(const std::string& IP,int Port){
|
||||
ToServer->sin_port = htons(Port);
|
||||
inet_pton(AF_INET, IP.c_str(), &ToServer->sin_addr);
|
||||
UDPSock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
|
||||
TCPSend("P",TCPSock);
|
||||
UDPSend(Sec("p"));
|
||||
TCPSend("H",TCPSock);
|
||||
UDPSend("p");
|
||||
while(!Terminate)UDPRcv();
|
||||
KillSocket(UDPSock);
|
||||
WSACleanup();
|
||||
|
||||
Reference in New Issue
Block a user