Example #1
0
        public void Broadcast(COutPacket packet)
        {
            foreach (var kvp in Sockets)
            {
                kvp.Value.SendPacket(packet);
            }

            packet.Dispose();
        }
Example #2
0
        public void Broadcast(COutPacket packet, params WvsGameClient[] excludes)
        {
            foreach (var kvp in Sockets)
            {
                if (!excludes.Contains(kvp.Value))
                {
                    kvp.Value.SendPacket(packet);
                }
            }

            packet.Dispose();
        }