Ejemplo n.º 1
0
        public bool Send(List <int> connectionIDs, int channelID, ArraySegment <byte> segment)
        {
            var bytes = ByteArrayUtil.ToBytes(segment);

            foreach (var connectionID in connectionIDs)
            {
                var connection = connections[connectionID];
                connection.AddToSendQueue(channelID, bytes);
            }

            return(true);
        }
Ejemplo n.º 2
0
 public void AddToSendQueue(int channelID, ArraySegment <byte> segment)
 {
     AddToSendQueue(channelID, ByteArrayUtil.ToBytes(segment));
 }