boolean function ( ) { port = connect ( ) ; if ( port == - 1 ) { return false ; } communicationThread = new Thread ( new Runnable ( ) { public void run ( ) { listenForConnections ( ) ; } } ) ; communicationThread . start ( ) ; communicationsStarted ( ) ; return true ; }
call this to start the server . concode_field_sep boolean hasRequestedShutdown concode_elem_sep ObjectSocketWrapper clientSocket concode_elem_sep ObserverLord<O> observerLord concode_elem_sep boolean isServerRunning concode_elem_sep P protocol concode_elem_sep Logger logger concode_elem_sep int port concode_elem_sep ServerSocket serverSocket concode_elem_sep Thread communicationThread concode_field_sep void connectionAccepted concode_elem_sep boolean isServerRunning concode_elem_sep void sendMessage concode_elem_sep void sendMessage concode_elem_sep void readFailureOccurred concode_elem_sep void removeServerObserver concode_elem_sep void clientCommunicationStopped concode_elem_sep void serverExited concode_elem_sep void communicationsStarted concode_elem_sep void listenForConnections concode_elem_sep int getPort concode_elem_sep boolean continueConnection concode_elem_sep void stop concode_elem_sep void processCommunications concode_elem_sep void messageReceived concode_elem_sep void addServerObserver concode_elem_sep void initialize concode_elem_sep void requestShutdown concode_elem_sep void notifyServerExited concode_elem_sep int connect