UdpSocket.getLocalPort

Get the port to which the socket is bound locally.

If the socket is not bound to a port, this function returns 0.

class UdpSocket
ushort
getLocalPort
(
)

Return Value

Type: ushort

Port to which the socket is bound.

Meta