ICI Modules: net: getportno


Modules by name : by type

Synopsis

int = net.getportno(socket)

Description

Return the local port number associated with a socket. This is typically used following a call to net.bind() with no address argument. Such a call has the system select a port number to be bound and this call subsequently retrieves it.