SOCKET WINAPI InetGetClientServerById( |
|
UINT nClientId |
|
); |
The InetGetClientServerById function returns a socket handle to
the server for the specified client session identifier.
Parameters
- nClientId
- Client session identifier.
Return Value
If the function succeeds, the return value is the handle to the
server that created the client session. If the function fails, the
return value is INVALID_SOCKET. To get extended error information,
call InetGetLastError.
Remarks
The InetGetClientServerById function returns the handle to the server
that created the client session using the client's unique identifier. The InetGetClientServer
function can be used to obtain the server handle using the client
socket handle rather than the client session ID. This function is
typically used in conjunction with the INET_NOTIFY_CONNECT
notification message to obtain the handle to the server that generated
the event using the client ID passed in the wParam message
parameter.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cswsock11.h
Import Library: cswskv11.lib
See Also
InetGetClientHandle,
InetGetClientId,
InetGetClientServer,
InetServerAsyncNotify
|