IFWXConnection::SetClientAddress
Method
Gives the client address for a connection returned by the
IFWXSession::BindForClient method
for which the client address was not previously specified.
HRESULT SetClientAddress(
LPSOCKADDR ClientAddress,
DWORD ClientAddressLength
);
Parameters
- ClientAddress
- [in] Pointer to a sockaddr structure that contains the
address that the client used.
- ClientAddressLength
- [in] Length, in bytes, of the ClientAddress
parameter.
Return Values
- S_OK
- The method succeeded.
- E_INVALIDARG
- Invalid address passed to the method, or the client address was
already specified.
- HRESULT_FROM_WIN32(win32 error code)
- Windows Sockets (Winsock) or Win32 error code. The method
failed.