Code example for DatagramChannel

Methods: close

0
		protected void closeChannel() 
		throws IOException 
		{ 
			if( dch != null ) {
				try { 
					dch.close();
				} 
				finally { 
					dch = null;
				} 
			} 
		} 
 
		/** 
		 *	This is the body of the listening thread 
		 */ 
		public void run() 
		{ 
			SocketAddress sender;
		 
Contextual code suggestions in your IDE  Get Codota for Java