(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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user