mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 00:17:00 +00:00
Add ping packet support
This commit is contained in:
@@ -186,6 +186,10 @@ void TNetwork::Identify(const TConnection& client) {
|
|||||||
Authentication(client);
|
Authentication(client);
|
||||||
} else if (Code == 'D') {
|
} else if (Code == 'D') {
|
||||||
HandleDownload(client.Socket);
|
HandleDownload(client.Socket);
|
||||||
|
} else if (Code == 'P') {
|
||||||
|
send(client.Socket, "P", 1, 0);
|
||||||
|
CloseSocketProper(client.Socket);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
CloseSocketProper(client.Socket);
|
CloseSocketProper(client.Socket);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user