void function ( Client arg0 , String arg1 ) { synchronized ( connections ) { for ( Client loc0 : connections ) { if ( loc0 != arg0 ) { loc0 . writeMessageFrom ( arg0 , arg1 ) ; } } } }
sends a message to all clients except the source . the method is synchronized as it is desired that messages are sent to all clients in the same order as received . concode_field_sep int port concode_elem_sep AsynchronousServerSocketChannel listener concode_elem_sep List<Client> connections concode_elem_sep AsynchronousChannelGroup channelGroup concode_field_sep void removeClient concode_elem_sep SocketAddress getSocketAddress concode_elem_sep void usage concode_elem_sep AsynchronousServerSocketChannel openChannel concode_elem_sep void handleNewConnection concode_elem_sep void run concode_elem_sep AsynchronousServerSocketChannel createListener concode_elem_sep void main concode_elem_sep void shutdown