TcpSocket.getLocalPort

Get the port to which the socket is bound locally.

If the socket is not connected, this function returns 0.

class TcpSocket
ushort
getLocalPort
(
)

Return Value

Type: ushort

Port to which the socket is bound.

Meta