Пример #1
0
        public override object Clone(ObjectProvider provider)
        {
            TcpHeader hdr = null;
            if (provider != null)
                hdr = (TcpHeader)provider.RentAnObject();
            else
                hdr = new TcpHeader();
            hdr.group_addr = group_addr;

            return hdr;
        }
Пример #2
0
		public virtual Message makeReply(ObjectProvider MsgProvider)
		{
            Message m = null;
            if (MsgProvider != null)
            {
                m = (Message) MsgProvider.RentAnObject();
            }
            else
                m = new Message(src_addr, null, null);

            m.dest_addr = src_addr;
            m.profileid = profileid;
            m.isProfilable = isProfilable;
            return m;
		}
Пример #3
0
 public override object Clone(ObjectProvider provider)
 {
     HDR hdr = null;
     if (provider != null)
         hdr = (HDR)provider.RentAnObject();
     else
         hdr = new HDR();
     hdr.type = this.type;
     hdr.seqID = seqID;
     hdr.localSeqID = localSeqID;
     hdr.viewId = viewId;
     return hdr;
 }