Rebex SFTP for .NET

ProxySocket.BeginSend Method 

Sends data asynchronously to a connected ProxySocket.

public IAsyncResult BeginSend(
   byte[] buffer,
   int offset,
   int size,
   SocketFlags socketFlags,
   AsyncCallback callback,
   object state
);

Parameters

buffer
The data to be sent.
offset
The position in the data buffer to begin sending data.
size
The number of bytes to send.
socketFlags
A bitwise combination of the SocketFlags values.
callback
The AsyncCallback delegate.
state
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous send.

Remarks

Prior to sending data, the socket must be connected using either a call to Connect method or a call to Listen and Accept methods.

The BeginSend method starts asynchronously sending data through a ProxySocket. You should create a callback method that implements the AsyncCallback delegate. This callback method should use the EndSend method to complete the asynchronous operation. See the .NET Framework SDK Reference for more information on asynchronous methods.

See Also

ProxySocket Class | Rebex.Net Namespace