Struct NetworkStreamConnection
A connection is represented by an entity having a NetworkStreamConnection. The component hold a reference to the underlying transport NetworkConnection and the NetworkDriver that created it. All connections share a common set of components:
- OutgoingCommandDataStreamBuffer
Client connections also have a IncomingSnapshotDataStreamBuffer to handle server ghost snapshots.Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public struct NetworkStreamConnection : IComponentData, IQueryTypeParameter
Fields
Name | Description |
---|---|
DriverId | The driver identifier that create the connection. Can be used to retrieve the NetworkDriver or the NetworkDriverStore.NetworkDriverInstance from the NetworkDriverStore. |
ProtocolVersionReceived | Flag used to mark if the connection has exchanged the protocol version. 1 indicates that the remote version protocol has been received. |
Value | The underlyng transport NetworkConnection |