Returns the port number on the remote host using the specified datagram packet, socket or url object.
Syntax
getPort( iobject )
iobject.getPort( )
Parameters
iobject
|
the datagram packet, socket or url object to use.
|
Returns
integer
|
the port number on the remote host.
|
Example
port = dgp.getPort( )
|