Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientGCMsg&lt;BodyType&gt;"/> class.
 /// This a reply constructor.
 /// </summary>
 /// <param name="msg">The message that this instance is a reply for.</param>
 /// <param name="payloadReserve">The number of bytes to initialize the payload capacity to.</param>
 public ClientGCMsg(GCMsgBase <MsgGCHdr> msg, int payloadReserve = 64)
     : this( payloadReserve )
 {
     // our target is where the message came from
     Header.TargetJobID = msg.Header.SourceJobID;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientGCMsgProtobuf&lt;BodyType&gt;"/> class.
 /// This a reply constructor.
 /// </summary>
 /// <param name="eMsg">The network message type this gc message represents.</param>
 /// <param name="msg">The message that this instance is a reply for.</param>
 /// <param name="payloadReserve">The number of bytes to initialize the payload capacity to.</param>
 public ClientGCMsgProtobuf(uint eMsg, GCMsgBase <MsgGCHdrProtoBuf> msg, int payloadReserve = 64)
     : this(eMsg, payloadReserve)
 {
     // our target is where the message came from
     Header.Proto.job_id_target = msg.Header.Proto.job_id_source;
 }