コード例 #1
0
        public void Send(BinaryMessage message)
        {
            var buffer = new byte[message.Length + 1];

            buffer[0] = message.Type;
            Array.Copy(message.GetData(), 0, buffer, 1, message.Length);
            socket.Send(buffer);
        }
コード例 #2
0
 public PendingMessage(ushort seq, BinaryMessage message)
 {
     Type       = message.Type;
     Content    = message.GetData();
     Seq        = seq;
     Last       = DateTime.Now;
     RetryCount = 0;
 }