Vixen
02b45cc4
csharp
public readonly record struct ConnectionId

A connection, as the server numbers it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The server allocates these and every peer uses the server's number for a connection — including the client whose connection it is, which learns its own id when the connection completes. A client never invents one, which is the same rule NetworkId follows for entities and for the same reason: two authorities numbering the same thing is a desync waiting for a race to expose it.

None is the zero value, so a default-constructed field is not a valid connection rather than being connection 0.

Fields and properties (3)

  • public uint Value

    The server-assigned number. Zero is None.

  • public static ConnectionId None

    No connection. What a default-constructed ConnectionId is.

  • public bool IsValid

    Whether this names a connection at all.

Methods (2)

  • public ConnectionId(uint Value)

    A connection, as the server numbers it.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (36)

  • AuthenticationRequestVixen.Net
  • ChannelTestsVixen.Net.Tests
  • CompositeTransportVixen.Net.Transport.Composite
  • CompositeTransportTestsVixen.Net.Transport.Composite.Tests
  • CountingEventsVixen.Net.Fuzz
  • DeliveryVixen.Net.Fuzz
  • EventRecorderVixen.Net.Tests
  • HandshakeTargetVixen.Net.Fuzz
  • ITransportVixen.Net
  • ITransportEventsVixen.Net
  • InjectingTransportVixen.Net.Fuzz
  • LocalTransportVixen.Net.Transport.Local
  • LocalTransportTestsVixen.Net.Transport.Local.Tests
  • NetworkPlayerVixen.Net
  • NetworkSessionVixen.Net
  • NetworkSimulationVixen.Net
  • OrderedKeyVixen.Net
  • PeerVixen.Net.Transport.WebSocket
  • PeerVixen.Net.Tests
  • PendingVixen.Net
  • PendingVixen.Net
  • QueuedVixen.Net.Transport.Udp
  • QueuedVixen.Net.Transport.Local
  • RecordedEventVixen.Net.Tests
  • ReentrantPollerVixen.Net.Transport.Local.Tests
  • RouteVixen.Net.Transport.Composite
  • RouterVixen.Net.Transport.Composite
  • SessionClientTargetVixen.Net.Fuzz
  • SessionTestsVixen.Net.Tests
  • TransportConformanceVixen.Net.Tests
  • UdpConnectionVixen.Net.Transport.Udp
  • UdpReliabilityTestsVixen.Net.Transport.Udp.Tests
  • UdpTransportVixen.Net.Transport.Udp
  • WebSocketTransportVixen.Net.Transport.WebSocket
  • FakeBuildVixen.Editor.Debugger.Tests
  • RemoteInspectorClientVixen.Editor.Debugger