Add ping packet support

This commit is contained in:
Lion Kortlepel
2021-12-09 12:08:24 +01:00
parent 6c5b2cbeb5
commit a5c23f8dde

View File

@@ -186,6 +186,10 @@ void TNetwork::Identify(const TConnection& client) {
Authentication(client);
} else if (Code == 'D') {
HandleDownload(client.Socket);
} else if (Code == 'P') {
send(client.Socket, "P", 1, 0);
CloseSocketProper(client.Socket);
return;
} else {
CloseSocketProper(client.Socket);
}