Returns the port number on the local host to which the specified datagram socket, server socket or socket object is bound.
Syntax
getLocalPort( isocket )
isocket.getLocalPort( )
Parameters
isocket
|
the datagram socket, server socket or socket object to use.
|
Returns
integer
|
the local port number.
|
Example
port = sct.getLocalPort( )
|