Set up or join a server, and send and receive messages across a network.
Multiple sessions can be run concurrently with any combination of servers and clients
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Networking Messaging
Namespace: DeltaEngine.Networking
Assembly: DeltaEngine.Networking (in DeltaEngine.Networking.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Messaging type exposes the following members.
Methods
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the Messaging | |
JoinSession | ||
StartSession |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void UniqueIDsAssigned() { Assert.AreEqual(0, serverSession.UniqueID); Assert.AreEqual(1, clientSession.UniqueID); }
[Test, CloseAfterFirstFrame] public void ServerReportsOneParticipant() { Assert.AreEqual(1, serverSession.NumberOfParticipants); }
[Test, CloseAfterFirstFrame, Timeout(5000)] public void ClientReportsParticipantsNotCalculated() { Assert.AreEqual(ClientMessagingSession.NumberOfParticipantsNotCalculated, clientSession.NumberOfParticipants); }
See Also