Listen Method of the IFWXNetworkSocket Interface

The Listen method listens on a TCP socket.

Syntax

HRESULT Listen(
  [in]  INT Backlog
);

Parameters

  • Backlog
    Maximum length of the queue of pending connections. This is the same as the backlog parameter of the Winsock listen function.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

The Listen method indicates to the network that you are willing to accept connections to the port for which you have a bind.

Requirements

Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXNetworkSocket

Send comments about this topic to Microsoft

Build date: 6/30/2010