network_data.c
changeset 1095 b59632d9df1b
parent 903 a301a264e0fc
child 1299 39c06aba09aa
equal deleted inserted replaced
1094:9a01482df45a 1095:b59632d9df1b
   112 // Functions to help NetworkRecv_Packet/NetworkSend_Packet a bit
   112 // Functions to help NetworkRecv_Packet/NetworkSend_Packet a bit
   113 //  A socket can make errors. When that happens
   113 //  A socket can make errors. When that happens
   114 //  this handles what to do.
   114 //  this handles what to do.
   115 // For clients: close connection and drop back to main-menu
   115 // For clients: close connection and drop back to main-menu
   116 // For servers: close connection and that is it
   116 // For servers: close connection and that is it
   117 NetworkRecvStatus CloseConnection(NetworkClientState *cs)
   117 static NetworkRecvStatus CloseConnection(NetworkClientState *cs)
   118 {
   118 {
   119 	NetworkCloseClient(cs);
   119 	NetworkCloseClient(cs);
   120 
   120 
   121 	// Clients drop back to the main menu
   121 	// Clients drop back to the main menu
   122 	if (!_network_server) {
   122 	if (!_network_server) {