C-DEngine 5.105

WebSocket..::..SendAsync Method (Stream, Int32, Action<(Of <(<'Boolean>)>)>)

Sends binary data from the specified Stream asynchronously using the WebSocket connection.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void SendAsync(
	Stream stream,
	int length,
	Action<bool> completed
)
Public Sub SendAsync ( _
	stream As Stream, _
	length As Integer, _
	completed As Action(Of Boolean) _
)
public:
void SendAsync(
	Stream^ stream, 
	int^ length, 
	Action<bool^>^ completed
)

Parameters

stream
Type: Stream
A Stream from which contains the binary data to send.
length
Type: Int32
An Int32 that represents the number of bytes to send.
completed
Type: Action<(Of <(<'Boolean>)>)>
An Action<bool> delegate that references the method(s) called when the send is complete. A Boolean passed to this delegate is true if the send is complete successfully.

Remarks


This method doesn't wait for the send to be complete.