Support of 1Gps+ internet

This commit is contained in:
Anonymous275
2020-12-19 01:16:05 +02:00
parent 4914d251f1
commit 49dd577c36
11 changed files with 183 additions and 68 deletions

View File

@@ -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();