public void ReadData(AcnBinaryReader data, bool tcpTransport) { //Read Preamble if (!tcpTransport) { PreambleSize = data.ReadOctet2(); PostambleSize = data.ReadOctet2(); } string packetId = data.ReadUtf8String(12); if (packetId != PacketId) { throw new InvalidPacketException("The packet ID is not a valid ACN packet Id"); } if (tcpTransport) { BlockSize = data.ReadOctet4(); } //Read PDU Header Length = data.ReadOctet2(); Flags = (byte)((Length & 0xF000) >> 12); Length &= 0xFFF; ProtocolId = data.ReadOctet4(); //Read CID SenderId = new Guid(data.ReadBytes(16)); }
protected override void ReadData(AcnBinaryReader data) { LeaderId = new Guid(data.ReadBytes(16)); ChannelNumber = data.ReadOctet2(); MemberId = data.ReadOctet2(); ReliableSequenceNumber = data.ReadOctet4(); FirstMissedSequence = data.ReadOctet4(); LastMissedSequence = data.ReadOctet4(); }
protected override void ReadData(AcnBinaryReader data) { ChannelNumber = data.ReadOctet2(); TotalSequenceNumber = data.ReadOctet4(); ReliableSequenceNumber = data.ReadOctet4(); OldestAvailableWrapper = data.ReadOctet4(); FirstMemberToAck = data.ReadOctet2(); LastMemberToAck = data.ReadOctet2(); MAKThreshold = data.ReadOctet2(); throw new NotImplementedException(); }
protected override void ReadData(AcnBinaryReader data) { ComponentId = new Guid(data.ReadBytes(16)); MemberId = data.ReadOctet2(); ChannelNumber = data.ReadOctet2(); ReciprocalChannel = data.ReadOctet2(); TotalSequenceNumber = data.ReadOctet4(); ReliableSequenceNumber = data.ReadOctet4(); DestinationAddress = SdtAddress.ReadData(data); ChannelParameterBlock = ChannelParameterBlock.ReadData(data); AdHocExpiry = data.ReadByte(); }
protected override void ReadData(AcnBinaryReader data) { SourceName = data.ReadUtf8String(64); SequenceNumber = data.ReadOctet4(); EndpointID = data.ReadOctet2(); data.BaseStream.Seek(1, SeekOrigin.Current); }
protected override void ReadData(AcnBinaryReader data) { LeaderId = new Guid(data.ReadBytes(16)); ChannelNumber = data.ReadOctet2(); MemberId = data.ReadOctet2(); ReliableSequenceNumber = data.ReadOctet4(); ReasonCode = (ReasonCodes)data.ReadByte(); }
public virtual void ReadPdu(AcnBinaryReader data) { //Read PDU Header Length = data.ReadOctet2(); Flags = (PduFlags)((Length & 0xF000) >> 12); Length &= 0xFFF; switch (vectorLength) { case 1: Vector = data.ReadByte(); break; case 4: Vector = data.ReadOctet4(); break; } ReadData(data); }
protected override void ReadData(AcnBinaryReader data) { ProtocolId = data.ReadOctet4(); }
protected override void ReadData(AcnBinaryReader data) { ProtocolId = data.ReadOctet4(); Reason = (ReasonCodes)data.ReadByte(); }
protected override void ReadData(AcnBinaryReader data) { ReliableSequenceNumber = data.ReadOctet4(); }