コード例 #1
0
        //#####################################################################################

        public NetMessageHeader Clone()
        {
            NetMessageHeader clone = new NetMessageHeader();

            clone.CheckSum       = this.CheckSum;
            clone.MessageNumber  = this.MessageNumber;
            clone.SequenceNumber = this.SequenceNumber;
            clone.BodySize       = this.BodySize;


            return(clone);
        }
コード例 #2
0
 public NetMessage(NetMessageHeader header, NetMessageBody body)
 {
     this.Header = header;
     this.Body   = body;
 }