| SOCKET GetClientServerById( |
| |
UINT nClientId |
|
| ); |
The GetClientServerById method returns a socket handle to
the server for the specified client session identifier.
Parameters
- nClientId
- Client session identifier.
Return Value
If the method succeeds, the return value is the handle to the
server that created the client session. If the method fails, the
return value is INVALID_SOCKET. To get extended error information,
call the GetLastError method.
Remarks
The GetClientServerById method returns the handle to the
server that created the client session using the client's unique
identifier. The GetClientServer
method can be used to obtain the server handle using the client
socket handle rather than the client session ID. This method 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: cswsock12.h
Import Library: cswskv12.lib
See Also
|