TCPIP_TCP_SocketNetGet Function

C

TCPIP_NET_HANDLE TCPIP_TCP_SocketNetGet(
    TCP_SOCKET hTCP
);

Description

This function returns the interface handle associated to a TCP socket.

Preconditions

TCP socket should have been opened with TCPIP_TCP_ClientOpen()/TCPIP_TCP_ServerOpen(). hTCP - valid socket

Parameters

ParametersDescription
hTCPThe TCP socket.

Returns

The handle of the local interface this socket is bound to.

Remarks

The returned handle could be NULL if the socket is invalid or the socket is not currently connected.