(svn r17617) -Codechange: make the server side packet handling be more like the client side's handling, i.e. return the connection status

-Fix: do not do invalid reads when a packet handling function closed a connection
This commit is contained in:
rubidium
2009-09-22 20:44:14 +00:00
parent b6156da5e9
commit d1032d69c8
3 changed files with 58 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_RCON)(NetworkClientSocket *cs, uint16 colour, const char *command);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_MOVE)(NetworkClientSocket *cs, uint16 client_id, CompanyID company_id);
bool NetworkServer_ReadPackets(NetworkClientSocket *cs);
void NetworkServer_ReadPackets(NetworkClientSocket *cs);
void NetworkServer_Tick(bool send_frame);
#else /* ENABLE_NETWORK */