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); }
public void AddToSendQueue(int channelID, ArraySegment <byte> segment) { AddToSendQueue(channelID, ByteArrayUtil.ToBytes(segment)); }