Inheritance: Packet
Exemple #1
0
        public void Ping()
        {
            var ping = new Packets.Ping();
            var pingStr = Packet.WriteToMessage(ping);

            try
            {
                foreach (var client in _server.Clients)
                {
                    client.Send(pingStr);
                }
            }
            catch (Exception e)
            {
                Program.Logger.Warn("ping failed", e);
            }
        }
Exemple #2
0
        public void Ping()
        {
            var ping    = new Packets.Ping();
            var pingStr = Packet.WriteToMessage(ping);

            try
            {
                foreach (var host in _server.WebSocketServices.Hosts)
                {
                    host.Sessions.Broadcast(pingStr);
                }
            }
            catch (Exception e)
            {
                Program.Logger.Warn("ping failed", e);
            }
        }
Exemple #3
0
        public void Ping()
        {
            var ping = new Packets.Ping();
            var pingStr = Packet.WriteToMessage(ping);

            try
            {
                foreach (var host in _server.WebSocketServices.Hosts)
                {
                    host.Sessions.Broadcast(pingStr);
                }
            }
            catch (Exception e)
            {
                Program.Logger.Warn("ping failed", e);
            }
        }
Exemple #4
0
        public void Ping()
        {
            var ping    = new Packets.Ping();
            var pingStr = Packet.WriteToMessage(ping);

            try
            {
                foreach (var client in _server.Clients)
                {
                    client.Send(pingStr);
                }
            }
            catch (Exception e)
            {
                Program.Logger.Warn("ping failed", e);
            }
        }