Microsoft Internet Security and Acceleration Server 2000 |
The connection object represented by the IFWXConnection interface implements functions specific to a particular connection. Each remote socket created for a client has a connection object associated with it.
The IFWXConnection methods are understood most easily in the context of connection scenarios:
Scenario A: Bind/Connect
Scenario B: Bind/Listen
When a listening socket exists, and a fwx_AcceptedConnection event occurs, an accepted socket is created on the Firewall service. The Connection object for the accepted socket exists before the matching client socket is created.
When a registered event occurs, the Firewall service will call FwxFirewallEventHandler and will pass the FirewallEvent parameter to it. Included in the FirewallEvent parameter is a pointer to IFWXConnection.
After the pointer is available you can use the methods such as IFWXConnection:AttachDataFilter.
The method IFWXConnection::AttachDataFilter is used in the following sample filters provided with ISA:
The method IFWXConnection::GetExternalSocketName is used in the following sample provided with ISA:
The method IFWXConnection::Deny is used in the following samples provided with ISA:
The method IFWXConnection::EmulateConnection is used in the following sample provided with ISA:
The method IFWXConnection::SetProtocol is used in the following samples provided with ISA:
The method IFWXConnection::SetSocketName is used in the following sample provided with ISA:
Implemented by the Firewall service.