MockServer ClassDelta Engine Documentation
Mock server used in unit testing when using a real server would be much too slow. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Networking Server
    DeltaEngine.Networking.Mocks MockServer

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

public class MockServer : Server

The MockServer type exposes the following members.

Constructors

  NameDescription
Public methodMockServer
Initializes a new instance of the MockServer class
Top
Methods

  NameDescription
Public methodClientConnectedToServer
Public methodClientDisconnectedFromServer
Public methodDispose
Releases all resources used by the MockServer
(Overrides Server Dispose .)
Public methodOnClientDataReceived (Inherited from Server.)
Protected methodRaiseClientConnected (Inherited from Server.)
Protected methodRaiseClientDisconnected (Inherited from Server.)
Public methodReceiveMessage
Public methodSendToAllClients
Public methodStart (Overrides Server Start(Int32).)
Top
Fields

  NameDescription
Protected fieldconnectedClients (Inherited from Server.)
Top
Properties

  NameDescription
Public propertyIsRunning (Inherited from Server.)
Public propertyLastMessage
Public propertyListenPort (Inherited from Server.)
Public propertyNumberOfConnectedClients (Inherited from Server.)
Top
Events

  NameDescription
Public eventClientConnected (Inherited from Server.)
Public eventClientDataReceived (Inherited from Server.)
Public eventClientDisconnected (Inherited from Server.)
Top
See Also