Struct NetworkPipelineContext
Current context of a pipeline stage instance. This type is only useful if implementing a custom INetworkPipelineStage, where it will get passed to the send and receive methods of the pipeline.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public struct NetworkPipelineContextFields
accumulatedHeaderCapacity
Total accumulated length of headers in this pipeline.
Declaration
public int accumulatedHeaderCapacityField Value
| Type | Description | 
|---|---|
| int | 
header
Writable pipeline stage header.
Declaration
public DataStreamWriter headerField Value
| Type | Description | 
|---|---|
| DataStreamWriter | 
internalProcessBuffer
Pointer to the internal send/receive buffer. This buffer will be different for the send and receive methods of a pipeline stage instance, and should only be used for that direction since the buffer will not be accessible to the other direction.
Declaration
public byte* internalProcessBufferField Value
| Type | Description | 
|---|---|
| byte* | 
internalProcessBufferLength
Length of the send/receive instance buffer.
Declaration
public int internalProcessBufferLengthField Value
| Type | Description | 
|---|---|
| int | 
internalSharedProcessBuffer
Pointer to the shared process buffer. This buffer is shared by both the receive and send methods of a pipeline stage instance (but not between stage instances).
Declaration
public byte* internalSharedProcessBufferField Value
| Type | Description | 
|---|---|
| byte* | 
internalSharedProcessBufferLength
Length of the shared instance buffer.
Declaration
public int internalSharedProcessBufferLengthField Value
| Type | Description | 
|---|---|
| int | 
maxMessageSize
Max message size (Path MTU) for the connection being processed
Declaration
public int maxMessageSizeField Value
| Type | Description | 
|---|---|
| int | 
staticInstanceBuffer
Pointer to the static instance buffer (shared by all instances of the pipeline stage).
Declaration
public byte* staticInstanceBufferField Value
| Type | Description | 
|---|---|
| byte* | 
staticInstanceBufferLength
Length of the static instance buffer.
Declaration
public int staticInstanceBufferLengthField Value
| Type | Description | 
|---|---|
| int | 
timestamp
Current timestamp of the pipeline stage execution.
Declaration
public long timestampField Value
| Type | Description | 
|---|---|
| long |