public static void Serialize(IOutOctetStream stream, ConnectRequest cmd)
 {
     stream.WriteUint8(CommandValues.ConnectRequest);
     stream.WriteUint32(cmd.MyNonce);
     stream.WriteUint32(cmd.RemoteNonce);
     UniqueSessionIdSerializer.Serialize(stream, cmd.SessionId);
     ConnectInfoSerializer.Serialize(stream, cmd.Info);
 }
Exemplo n.º 2
0
        public static void Serialize(IOutOctetStream stream, IncomingLogic tendIn, OutgoingLogic tendOut)
        {
            stream.WriteUint8(tendOut.OutgoingSequenceId.Value);
            var header = tendIn.ReceivedHeader;

            stream.WriteUint8(header.SequenceId.Value);
            stream.WriteUint32(header.ReceivedBits.Bits);
        }
Exemplo n.º 3
0
 public static void Serialize(IOutOctetStream stream, ChallengeRequest cmd)
 {
     stream.WriteUint8(CommandValues.ChallengeRequest);
     stream.WriteUint32(cmd.Nonce);
 }