void ServerConnection::checkLostConnection(){ int lostHandle; while((lostHandle = GetLostNetWork()) != -1){ int tmp = findClientFromNetHandle_(lostHandle); delete clients_[tmp]; connected_[tmp] = false; } }
void Client::updateConnecting( ) { if ( _tcp_handle < 0 ) { _phase = PHASE_READY; return; } if ( GetLostNetWork( ) == _tcp_handle ) { CloseNetWork( _tcp_handle ); // 接続を断つ _tcp_handle = -1; } recieveStatus( ); responseOfState( ); }