Code example for DatagramChannel

Methods: close

0
 
	private void closeChannel(final boolean inResponseToAnEarlierException)
	{ 
		try 
		{ 
			channel.close();
		} 
		catch (IOException e)
		{ 
			if (inResponseToAnEarlierException)
			{ 
				return; 
			} 
			throw new IllegalStateException(e);
		} 
	} 
 
	private void connect(final SocketAddress remoteSocketAddress)
	{ 
		try 
		{