public ServerDefault(ServiceConfiguration configuration) { this.configuration = configuration; msgHandler = new NetworkMessageHandler(); server = new NetworkServer(); server.serverDelegate = this; SetupMessageHandlers(); }
public virtual void Release() { msgHandler = null; server = null; configuration = null; }
public virtual void OnNetworkServerClientMessage(NetworkServer server, int client, NetworkMessage msg) { msgHandler.ProcessMessage(msg); }
public virtual void OnNetworkServerClientDisconnected(NetworkServer server, int client) { }
public override void OnNetworkServerClientMessage(NetworkServer server, int client, NetworkMessage msg) { base.OnNetworkServerClientMessage(server, client, msg); }
public override void OnNetworkServerClientDisconnected(NetworkServer server, int client) { base.OnNetworkServerClientDisconnected(server, client); }