Code example for ServerSocketChannel

Methods: close

0
		try { 
 
			// Close the server socket to release any pending listen 
 
			if ( m_srvSockChannel != null)
				m_srvSockChannel.close();
		} 
		catch (SocketException ex) {
		} 
		catch (Exception ex) {
		} 
	} 
 
	/** 
	 * Create a packet handler for the new client socket connection 
	 *  
	 * @param sockChannel SocketChannel 
	 * @return PacketHandler 
	 * @exception IOException 
	 */