Code example for DatagramSocket

Methods: close, isClosed

0
	 *  
	 * @param pDatagramSocket		The socket we want to close. 
	 */ 
	private void closeSocket(final DatagramSocket pDatagramSocket)
	{ 
		if(pDatagramSocket != null && !pDatagramSocket.isClosed()) {
			pDatagramSocket.close();
		} 
	} 
 
	/** 
	 * Called if the server throws an exception. 
	 *  
	 * @param pThrowable		The exception thrown. 
	 */ 
	protected void onException(final Throwable pThrowable)
	{ 
		this.mSocketServerDiscoveryServerListener.onException(this, pThrowable);
	} 
 
	/**