localPort

Extracts the port to which the socket was bound.

See Also: srt_getsockname

Return

if socket is bound and valid, it returns the local port. Otherwise, it returns a 0.

See also

Throws

if SRT socket is invalid or not bound