public InfoSource(GuidPrefix guidPrefix) : base(SubMessageKind.INFO_SRC) { this.protocolVersion = ProtocolVersion.PROTOCOLVERSION_2_1; this.vendorId = VendorId.VENDORID_UNKNOWN; this.guidPrefix = guidPrefix; }
public static void GetGuidPrefix(this 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 PutGuidPrefix(this IoBuffer buffer, GuidPrefix obj) { buffer.Put(obj.Prefix); }
/// <summary> /// Constructor /// </summary> /// <param name="prefix"></param> public Message(GuidPrefix prefix) { header = new Header(prefix); }
void IgnoreParticipant(GuidPrefix prefix) { ignoredParticipants.Add(prefix); }
private void HandleHeartbeat(GuidPrefix senderGuidPrefix, Heartbeat hb) { #if TODO Reader reader = participant.getReader(hb.getReaderId(), hb.getWriterId()); if (reader != null) { reader.onHeartbeat(senderGuidPrefix, hb); } else { log.DebugFormat("No Reader({0}) to handle Heartbeat from {1}", hb.getReaderId(), hb.getWriterId()); } #endif throw new NotImplementedException(); }
private void HandleGap(GuidPrefix sourceGuidPrefix, Gap gap) { #if TODO Reader reader = participant.getReader(gap.getReaderId(), gap.getWriterId()); reader.handleGap(sourceGuidPrefix, gap); #endif throw new NotImplementedException(); }
private void handleAckNack(GuidPrefix sourceGuidPrefix, AckNack ackNack) { #if TODO Writer writer = participant.getWriter(ackNack.getWriterId(), ackNack.getReaderId()); if (writer != null) { writer.onAckNack(sourceGuidPrefix, ackNack); } else { log.DebugFormat("No Writer({0}) to handle AckNack from {1}", ackNack.getWriterId(), ackNack.getReaderId()); } #endif throw new NotImplementedException(); }
/// <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; }
public Header(GuidPrefix prefix) { guidPrefix = prefix; }
public Header() { guidPrefix = GuidPrefix.GUIDPREFIX_UNKNOWN; }
public GUID(GuidPrefix prefix, EntityId entityId) { this.guidPrefix = prefix; this.entityId = entityId; }