Exemple #1
0
 public InfoSource(GuidPrefix guidPrefix)
     : base(SubMessageKind.INFO_SRC)
 {
     this.protocolVersion = ProtocolVersion.PROTOCOLVERSION_2_1;
     this.vendorId = VendorId.VENDORID_UNKNOWN;
     this.guidPrefix = guidPrefix;
 }
Exemple #2
0
 public Receiver(Header header)
     : this()
 {
     sourceGuidPrefix = header.GuidPrefix;
     sourceVersion = header.Version;
     throw new KeyNotFoundException("See page 35, unicast and multicast initialization");
 }
Exemple #3
0
 public Receiver()
 {
     sourceVersion = ProtocolVersion.PROTOCOLVERSION;
     vendorId = VendorId.VENDORID_UNKNOWN;
     sourceGuidPrefix = GuidPrefix.GUIDPREFIX_UNKNOWN;
     haveTimestamp = false;
     timestamp = Time.TIME_INVALID;
 }
 public static void PutGuidPrefix(this IoBuffer buffer, GuidPrefix obj)
 {
     buffer.Put(obj.Prefix);
 }
 public static void ReadGuidPrefix(IoBuffer buffer, ref GuidPrefix obj)
 {
     buffer.Get(obj.Prefix, 0, GuidPrefix.GUID_PREFIX_SIZE);
 }
 public static GuidPrefix GetGuidPrefix(this IoBuffer buffer)
 {
     GuidPrefix obj = new GuidPrefix();
     buffer.GetGuidPrefix(ref obj);
     return obj;
 }
 public static void WriteGuidPrefix(IoBuffer buffer, GuidPrefix obj)
 {
     buffer.Put(obj.Prefix);
 }
Exemple #8
0
 public Entity(GuidPrefix guidPrefix, EntityId entityId)
 {
     this.guid = new GUID(guidPrefix, entityId);
 }
Exemple #9
0
 public Receiver(GuidPrefix destination)
     : this()
 {
     destGuidPrefix = destination;
     throw new KeyNotFoundException("See page 35, unicast and multicast initialization");
 }
Exemple #10
0
 /// <summary>
 /// This constructor is used when the intention is to send data into network.
 /// </summary>
 /// <param name="guidPrefix"></param>
 public InfoDestination(GuidPrefix guidPrefix)
     : base(SubMessageKind.INFO_DST)
 {
     this.guidPrefix = guidPrefix;
 }
Exemple #11
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="prefix"></param>
 public Header(GuidPrefix prefix)
 {
     guidPrefix = prefix;
 }
Exemple #12
0
 public Header()
 {
     guidPrefix = GuidPrefix.GUIDPREFIX_UNKNOWN;
 }