Code example for Selector

Methods: close

0
	 */ 
	public void closeServer() { 
		if( mServerSocketChannel != null ){
			try{ 
				mServerSocketChannel.close();
				mServerSelector.close();
			}catch(Exception e){
				 
			}finally{ 
				mApp.mIsServer = false;
				mServerSocketChannel = null;
				mServerSelector = null;
				mServerAddr = null;
				mClientChannels.clear();
			} 
		} 
	} 
	 
	public void closeClient() { 
		if( mClientSocketChannel != null ){
			try{