Code example for DatagramPacket

Methods: setPort

0
	/** 
	 * Sets the port number on the remote host to which this datagram is being 
	 * sent. 
	 */ 
	public void setPort(int iport) {
		packet.setPort(iport);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java