Esempio n. 1
0
 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);
 }
Esempio n. 3
0
        protected virtual void ServerOnClientConnected(object sender, ServerClientEventArgs args)
        {
            // Install event handler
            var client = args.Client;

            client.MessageReceived += ClientOnMessageReceived;
            client.MessageSent += ClientOnMessageSent;
        }