The GetSockOpt method retrieves a socket option. This method is similar to the Winsock getsockopt function.
HRESULT GetSockOpt( [in] int level, [in] int optname, [out] CHAR* optval, [in, out] int optlen );
Level at which the option is defined. The supported levels include SOL_SOCKET and IPPROTO_TCP.
Socket option for which the value is to be retrieved.
Pointer to a buffer that receives the value of the requested option.
Size, in bytes, of the optval buffer.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
For an IFWXNetworkSocket interface created by a call to IFWXSession::CreateNetworkSocket, this method returns E_NOTIMPL.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.