Method EndSend
EndSend(DataStreamWriter)
Ends a asynchronous send.
Declaration
public int EndSend(DataStreamWriter writer)
Parameters
Type | Name | Description |
---|---|---|
DataStreamWriter | writer | If you require the payload to be of certain size. |
Returns
Type | Description |
---|---|
int | The length of the buffer sent if nothing went wrong. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If endsend is called with a matching BeginSend call. |
InvalidOperationException | If the connection got closed between the call of being and end send. |