Struct NetworkPipelineStage
Concrete implementation details of a pipeline stage. Only used if implementing custom pipeline stages. Implementors of INetworkPipelineStage are required to produce this structure on static initialization. The values in this structure will then be used at runtime for each pipeline where the stage is used.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public struct NetworkPipelineStage
Constructors
NetworkPipelineStage(TransportFunctionPointer<ReceiveDelegate>, TransportFunctionPointer<SendDelegate>, TransportFunctionPointer<InitializeConnectionDelegate>, int, int, int, int, int)
Create a new pipeline stage.
Declaration
public NetworkPipelineStage(TransportFunctionPointer<NetworkPipelineStage.ReceiveDelegate> Receive, TransportFunctionPointer<NetworkPipelineStage.SendDelegate> Send, TransportFunctionPointer<NetworkPipelineStage.InitializeConnectionDelegate> InitializeConnection, int ReceiveCapacity, int SendCapacity, int HeaderCapacity, int SharedStateCapacity, int PayloadCapacity = 0)
Parameters
Type | Name | Description |
---|---|---|
TransportFunctionPointer<NetworkPipelineStage.ReceiveDelegate> | Receive | Function pointer for the receive method. |
TransportFunctionPointer<NetworkPipelineStage.SendDelegate> | Send | Function pointer for the send method. |
TransportFunctionPointer<NetworkPipelineStage.InitializeConnectionDelegate> | InitializeConnection | Function pointer for the connection initialization method. |
int | ReceiveCapacity | Capacity of the receive buffer. |
int | SendCapacity | Capacity of the send buffer. |
int | HeaderCapacity | Length of the pipeline stage header. |
int | SharedStateCapacity | Capacity of the shared buffer. |
int | PayloadCapacity | Maximum payload size processable by the pipeline stage. |
Fields
HeaderCapacity
Length of the pipeline stage header.
Declaration
public readonly int HeaderCapacity
Field Value
Type | Description |
---|---|
int |
InitializeConnection
Function pointer for the connection initialization method.
Declaration
public TransportFunctionPointer<NetworkPipelineStage.InitializeConnectionDelegate> InitializeConnection
Field Value
Type | Description |
---|---|
TransportFunctionPointer<NetworkPipelineStage.InitializeConnectionDelegate> |
PayloadCapacity
Maximum payload size supported by the pipeline stage.
Declaration
public readonly int PayloadCapacity
Field Value
Type | Description |
---|---|
int |
Receive
Function pointer for the receive method.
Declaration
public TransportFunctionPointer<NetworkPipelineStage.ReceiveDelegate> Receive
Field Value
Type | Description |
---|---|
TransportFunctionPointer<NetworkPipelineStage.ReceiveDelegate> |
ReceiveCapacity
Capacity of the receive buffer.
Declaration
public readonly int ReceiveCapacity
Field Value
Type | Description |
---|---|
int |
Send
Function pointer for the send method.
Declaration
public TransportFunctionPointer<NetworkPipelineStage.SendDelegate> Send
Field Value
Type | Description |
---|---|
TransportFunctionPointer<NetworkPipelineStage.SendDelegate> |
SendCapacity
Capacity of the send buffer.
Declaration
public readonly int SendCapacity
Field Value
Type | Description |
---|---|
int |
SharedStateCapacity
Capacity of the shared buffer.
Declaration
public readonly int SharedStateCapacity
Field Value
Type | Description |
---|---|
int |