CSocketMaster: GetLocalPort

GetLocalPort

Returns local port from a connected or bound socket.



 Private Function GetLocalPort(
	  ByVal lngSocket As Long ) As Long

Parameters

lngSocket
[ByVal] Long. Connected or bound socket

Return Values

Long -  Local port, returns SOCKET_ERROR if fails.

Remarks

See Also

Project pop2owa Overview Class CSocketMaster Overview CSocketMaster Properties CSocketMaster Methods GetLocalInfo GetRemoteInfo