Struct NetworkDriver.Concurrent
Structure that can be used to access a NetworkDriver
from multiple jobs. Only a
subset of operations are supported because not all operations are safe to perform
concurrently. Must be obtained with the ToConcurrent() method.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkDriver.Concurrent
Methods
Name | Description |
---|---|
AbortSend(DataStreamWriter) | Aborts a send started with BeginSend(NetworkPipeline, NetworkConnection, out DataStreamWriter, int). |
BeginSend(NetworkConnection, out DataStreamWriter, int) | Begin sending data on the given connection (default pipeline). |
BeginSend(NetworkPipeline, NetworkConnection, out DataStreamWriter, int) | Begin sending data on the given connection and pipeline. |
EndSend(DataStreamWriter) | Enqueue a send operation for the data in the given DataStreamWriter, which must have been obtained by a prior call to BeginSend(NetworkPipeline, NetworkConnection, out DataStreamWriter, int). |
GetConnectionState(NetworkConnection) | Get the current state of the given connection. |
MaxHeaderSize(NetworkPipeline) | Get the maximum size of headers when sending on the given pipeline. |
PopEventForConnection(NetworkConnection, out DataStreamReader) | Pops the next event from the event queue for the given connection, Empty will be returned if there are no more events. |
PopEventForConnection(NetworkConnection, out DataStreamReader, out NetworkPipeline) | Pops the next event from the event queue for the given connection, Empty will be returned if there are no more events. |