protected virtual void ServerOnClientDisconnected(object sender, ServerClientEventArgs args) { }
protected override void ServerOnClientDisconnected(object sender, ServerClientEventArgs args) { ServerConsole.InfoLine("Client disconnected: {0}", args.Client.RemoteEndPoint); base.ServerOnClientDisconnected(sender, args); }
protected virtual void ServerOnClientConnected(object sender, ServerClientEventArgs args) { // Install event handler var client = args.Client; client.MessageReceived += ClientOnMessageReceived; client.MessageSent += ClientOnMessageSent; }