TcpSocket.getRemotePort

Get the port of the connected peer to which the socket is connected.

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

class TcpSocket
ushort
getRemotePort
(
)

Return Value

Type: ushort

Remote port to which the socket is connected.

Meta