TcpTunnel.getLocalPort()

DESCRIPTION

Get the local TCP port, useful when opening tunnel with 0 as local port.

DECLARATION

    public func getLocalPort() throws -> UInt16 

PARAMETERS

None.

ERRORS

Throws the following errors:

INVALID_STATE:
if the tunnel is not open.

RETURN VALUES

the local port the local TCP server is listening on

EXAMPLES

None.