Microsoft Internet Security and Acceleration Server 2000

IFWXSession::CreateNetworkSocket Method

Creates a TCP/IP socket that is associated with this session.

HRESULT CreateNetworkSocket(
  INT Protocol,
  IFWXNetworkSocket **piSocket


[in] Protocol flags. This parameter can have the following flag values:
Value Description
FWX_PROTOCOL_TCP The method will create a TCP socket.
FWX_PROTOCOL_UDP The method will create a UDP socket.

[out] Address of a variable that receives a pointer to the IFWXNetworkSocket interface.

Return Values

The socket was created.
Insufficient memory or resources to process the event; the socket was not created.
HRESULT_FROM_WIN32(win32 error code)
Winsock or Win32 error code. The method failed.


The socket created by this method is user-specific, and its activity obeys the policy rules for the session. Connections are logged as if they were performed by the session's user.

To create a socket that is not user specific, use IFWXFirewall::CreateNetworkSocket.