Method BeginSend
BeginSend(NetworkPipeline, NetworkConnection, out DataStreamWriter, int)
Acquires a DataStreamWriter for starting a asynchronous send.
Declaration
public int BeginSend(NetworkPipeline pipe, NetworkConnection id, out DataStreamWriter writer, int requiredPayloadSize = 0)
Parameters
Type | Name | Description |
---|---|---|
Network |
pipe | The NetworkPipeline to write through |
Network |
id | The NetworkConnection id to write through |
Data |
writer | A DataStreamWriter to write to |
int | requiredPayloadSize | If you require the payload to be of certain size |
Returns
Type | Description |
---|---|
int | Returns Success on a successful acquire. Otherwise returns an Status |
Remarks
Will throw a Invalid
BeginSend(NetworkConnection, out DataStreamWriter, int)
Acquires a DataStreamWriter for starting a asynchronous send.
Declaration
public int BeginSend(NetworkConnection id, out DataStreamWriter writer, int requiredPayloadSize = 0)
Parameters
Type | Name | Description |
---|---|---|
Network |
id | The NetworkConnection id to write through |
Data |
writer | A DataStreamWriter to write to |
int | requiredPayloadSize | If you require the payload to be of certain size |
Returns
Type | Description |
---|---|
int | Returns Success on a successful acquire. Otherwise returns an Status |
Remarks
Will throw a Invalid