mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-03 08:26:01 +00:00
Added Debug Info
This commit is contained in:
parent
3aeb2cae1b
commit
2eb97e123c
@ -118,7 +118,7 @@ void RUDPClientThread(const std::string& IP, int Port){
|
|||||||
RUDPToSend.front().length()+1,
|
RUDPToSend.front().length()+1,
|
||||||
ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT);
|
ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT);
|
||||||
enet_peer_send(client.peer, 0, packet);
|
enet_peer_send(client.peer, 0, packet);
|
||||||
std::cout << "(Launcher->Server) sending : " << RUDPToSend.front() << std::endl;
|
std::cout << "(Launcher->Server) sending " << RUDPToSend.front().length() << " Bytes" << std::endl;
|
||||||
RUDPToSend.pop();
|
RUDPToSend.pop();
|
||||||
}
|
}
|
||||||
while(RUDPToSend.empty() && Interval < 1000){
|
while(RUDPToSend.empty() && Interval < 1000){
|
||||||
@ -241,7 +241,7 @@ void TCPServerThread(const std::string& IP, int Port){
|
|||||||
std::string buff = recvbuf;
|
std::string buff = recvbuf;
|
||||||
buff.resize(iResult);
|
buff.resize(iResult);
|
||||||
RUDPToSend.push(buff);
|
RUDPToSend.push(buff);
|
||||||
std::cout << "(Game->Launcher) Data : " << buff.c_str() << std::endl;
|
///std::cout << "(Game->Launcher) Data : " << buff.c_str() << std::endl;
|
||||||
} else if (iResult == 0) {
|
} else if (iResult == 0) {
|
||||||
std::cout << "(Proxy) Connection closing...\n";
|
std::cout << "(Proxy) Connection closing...\n";
|
||||||
closesocket(ClientSocket);
|
closesocket(ClientSocket);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user