IFWXSocket::Send method

Applies to: desktop apps only

The Send method sends a buffer asynchronously. It performs an overlapped send operation.

Syntax

HRESULT Send(
  [in]  IFWXIOBuffer *pIOBuffer,
  [in]  IFWXIOCompletion *pIFWXIOCompletion,
  [in]  UserContextType UserData
);

Parameters

  • pIOBuffer [in]
    Pointer to the buffer to send.

  • pIFWXIOCompletion [in]
    Pointer to the IFWXIOCompletion interface that is notified when the send operation is completed. Set this parameter to NULL if notification is not required.

  • UserData [in]
    An opaque value to pass to the IFWXIOCompletion::CompleteAsyncIO notification method. This parameter provides a context to the notification, thereby allowing identification of each send operation.

Return value

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

Remarks

To receive a notification when the send operation is completed, specify an IFWXIOCompletion interface pointer in the pIFWXIOCompletion parameter.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXSocket

IFWXIOBuffer

 

 

Build date: 7/12/2010