Microsoft Internet Security and Acceleration Server 2000

IFWXNetworkSocket::Accept Method

Asynchronously accepts a connection on a listening socket.

HRESULT Accept(
  IFWXAcceptCompletion *pIFWXAcceptCompletion,
  UserContextType UserData
);

Parameters

pIFWXAcceptCompletion
[in] Pointer to the IFWXAcceptCompletion interface. This interface receives a notification when the call to the Accept method completes.
UserData
[in] An opaque value to pass to the IFWXAcceptCompletion::CompleteAsyncAccept notification method. This parameter provides a context to the notification.

Remarks

The UserData parameter provides a context to the notification. You can use the same notification interface for completion notifications from distinct network socket objects and differentiate between them by using different values for UserData.

This method is similar to the Winsock accept function, which is described in MSDN.