Discussion Board
Subject: Compacted feed packet header format

Add Reply   
Author Messages
John (guest)

06/10/2008 5:27 PM Quote Reply Alert 
The documentation states that each packet in the compacted feed has a non-compacted header containing the packet size and sequence number. Is the format of this header the same as the generic header in section 4.8?
Lydia
Posts:68

06/11/2008 8:52 AM Quote Reply Alert 
John,
Thank you for your inquiry. The appropriate parties have been notified about your question, and we will respond to your post shortly.

Regards,
NYX Data Team
Guy (guest)

06/11/2008 2:14 PM Quote Reply Alert 
That's what I've been doing and it works. In java:
msg.msgSize = buf.getShort();
msg.msgType = buf.getShort(); // 2
msg.msgSeqNum = buf.getInt(); // 4
msg.sendTime = buf.getInt(); // 4
msg.productID = (buf.get() & 0xFF); // 1
msg.retransFlag = (buf.get() & 0xFF); // 1
msg.numBodyEntries = (buf.get() & 0xFF); // 1
msg.filler = (buf.get() & 0xFF); // 1
Tao (guest)

07/11/2008 4:37 PM Quote Reply Alert 
Could you please also help to clarify one thing about packet header?

V2.7 Spec section 2.4 mentioned: "Each packet has a header containing the packet size and sequence number ".

Does this mean each packet contains ONE un-compacted header in generic format, followed by multiple compacted messages?

Thx

Lydia
Posts:68

08/05/2008 12:03 PM Quote Reply Alert 
Tao,
Thank you for your inquiry. We will respond shortly.

Regards,
NYX Data Team
Guy (guest)

08/05/2008 12:31 PM Quote Reply Alert 
That's right. Pull off the uncompacted header and then call ABFastDecode() until all the remaining bytes are consumed.
Add Reply
Forums > Information Products - Datafeeds > ARCABook > Compacted feed packet header format

Quick Reply
Username:  
Subject:  
Body: