int function ( ) { return clientThreadGroup . activeCount ( ) ; }
counts the number of clients currently connected . concode_field_sep int port concode_elem_sep Thread connectionListener concode_elem_sep ServerSocket serverSocket concode_elem_sep boolean readyToStop concode_elem_sep int timeout concode_elem_sep int backlog concode_elem_sep ThreadGroup clientThreadGroup concode_field_sep void sendToAllClients concode_elem_sep void handleMessageFromClient concode_elem_sep boolean isListening concode_elem_sep void clientConnected concode_elem_sep void clientException concode_elem_sep void stopListening concode_elem_sep void run concode_elem_sep void setPort concode_elem_sep void listen concode_elem_sep void serverClosed concode_elem_sep void setTimeout concode_elem_sep void receiveMessageFromClient concode_elem_sep int getPort concode_elem_sep void listeningException concode_elem_sep void serverStarted concode_elem_sep void setBacklog concode_elem_sep Thread[] getClientConnections concode_elem_sep void serverStopped concode_elem_sep void close concode_elem_sep void clientDisconnected