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); }
public PendingMessage(ushort seq, BinaryMessage message) { Type = message.Type; Content = message.GetData(); Seq = seq; Last = DateTime.Now; RetryCount = 0; }