Vixen
02b45cc4
csharp
public interface IRpcTransport

Where a router sends what it has encoded.

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

Remarks

A seam rather than a direct call into the session, so the router can be tested against a fake that records packets instead of a session, and so an editor's replay tooling can put itself in the middle later.

Methods (3)

  • void SendToServer(ReadOnlySpan<byte> payload, Channel channel)

    Sends to the server.

  • void SendToPlayer(PlayerId player, ReadOnlySpan<byte> payload, Channel channel)

    Sends to one player.

  • void SendToAll(ReadOnlySpan<byte> payload, Channel channel)

    Sends to everybody in the session.

Used by (7)

  • DroppingTransportVixen.Net.Fuzz
  • LoopbackVixen.Net.Tests
  • NullTransportVixen.Net.Tests
  • RecordingTransportVixen.Net.Tests
  • RecordingTransportVixen.Net.Generators.Tests
  • RpcRouterVixen.Net
  • SessionRpcTransportVixen.Net