void function ( ) { if ( clientSockets != null ) for ( int loc1 = 0 ; loc1 < clientSockets . size ( ) ; loc1 ++ ) { try { gUpdates . add ( "srini_string" + clientSockets . get ( loc1 ) . id ) ; clientSockets . get ( loc1 ) . close ( ) ; clientSockets . remove ( loc1 ) ; loc1 -- ; } catch ( Exception loc0 ) { } } nPlayers = 0 ; }
server disconnects and removes all clients . concode_field_sep List<String> updates concode_elem_sep String currentRequest concode_elem_sep InputStream reader concode_elem_sep ServerSocket serverSocket concode_elem_sep boolean searchForClients concode_elem_sep int nPlayers concode_elem_sep List<String> gUpdates concode_elem_sep Thread thread concode_elem_sep double timer concode_elem_sep int nextId concode_elem_sep Socket hostSocket concode_elem_sep boolean isConnected concode_elem_sep boolean host concode_elem_sep String name concode_elem_sep double timerLimit concode_elem_sep String hostAddress concode_elem_sep DataOutputStream writer concode_elem_sep List<ClientSocket> clientSockets concode_elem_sep Player player concode_field_sep void setHost concode_elem_sep String readFromHost concode_elem_sep void startListening concode_elem_sep boolean hasNewUpdate concode_elem_sep String getNextUpdate concode_elem_sep boolean isConnected concode_elem_sep void update concode_elem_sep void stopListening concode_elem_sep void run concode_elem_sep ClientSocket getClient concode_elem_sep boolean hasNewPlayer concode_elem_sep ClientSocket listen concode_elem_sep void connectToHost concode_elem_sep void removeClient concode_elem_sep boolean isHost concode_elem_sep void disconnectFromHost concode_elem_sep void updateFromHost concode_elem_sep void setAsHost concode_elem_sep void applyUpdates concode_elem_sep void close concode_elem_sep ClientSocket getNewPlayer