Vixen
02b45cc4
csharp
public sealed class LocalNetwork

The wire the local transports share: where a client looks to find the server it was told to connect to.

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

Remarks

An in-process transport still needs a rendezvous, because "the server" is an object and the client has to be given a way to find it that is not a direct reference — otherwise a test cannot express "connect to something that is not listening", and that is one of the cases worth testing.

An instance is a network. Two LocalNetwork objects cannot reach each other whatever they name their addresses, so two tests running side by side in the same process are as isolated as two machines. That is why this is an object and not a static registry: xunit runs test classes in parallel, and a static one would have them share a world.

Fields and properties (2)

  • public const string DefaultAddress

    The address a transport listens on and connects to when it is not told otherwise.

  • public int ListenerCount

    How many servers are listening on this network.

Methods (1)

  • public bool IsListening(string address)

    Whether a server is listening on .

Used by (16)

  • LocalMatchMultiplayer
  • CompositeOverLocalConformanceTestsVixen.Net.Transport.Composite.Tests
  • CompositeTransportTestsVixen.Net.Transport.Composite.Tests
  • HarnessVixen.Net.Tests
  • LocalTransportVixen.Net.Transport.Local
  • LocalTransportConformanceTestsVixen.Net.Tests
  • LocalTransportTestsVixen.Net.Transport.Local.Tests
  • RpcOverSessionTestsVixen.Net.Tests
  • SessionHarnessVixen.Net.Tests
  • SessionTestsVixen.Net.Tests
  • SimulatedTransportConformanceTestsVixen.Net.Tests
  • DiagnosticsModuleVixen.Editor.Diagnostics
  • RemoteInspectorTestsVixen.Editor.Debugger.Tests
  • RealmVixen.Live.Realm.Tests
  • RealmClusterTestsVixen.Live.Realm.Cluster.Tests
  • RealmFixtureVixen.Live.Realm.Tests