DatagramPacket.getPort

DatagramPacket.getPort

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized int getPort()
Returns
the port number on the remote host to which this datagram is being sent or from which the datagram was received.
Description
Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received.