private void updateConnecting ( ) throws IOException { if ( clientId == - 1 ) { // Receive id clientId = in . readByte ( ) ; // Send the name out . writeByte ( NetworkMessageSystemId . CONNECTING ) ; out . writeByte ( clientId ) ; final byte [ ] data = clientName . getBytes ( NetworkMessage . CHARSET ) ; out . writeByte ( data . length ) ; out . write ( data ) ; out . flush ( ) ; Verbose . info ( "Client: Performing connection to the server..." ) ; } }
Update the connecting case .