Messaging ClassDelta Engine Documentation
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

System Object
  DeltaEngine.Networking Messaging

Namespace: DeltaEngine.Networking
Assembly: DeltaEngine.Networking (in DeltaEngine.Networking.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class Messaging : IDisposable

The Messaging type exposes the following members.

Methods

  NameDescription
Public methodDispose
Releases all resources used by the Messaging
Public methodStatic memberJoinSession
Public methodStatic memberStartSession
Top
Remarks

Tests: DeltaEngine.Networking.Tests.MessagingTests
Examples

11 unit tests call DeltaEngine.Networking.Messaging
[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