Ask Your Question
1

where are the 42 header bytes?

asked 2015-02-26 19:57:24 -0600

brice rebsamen gravatar image

I went through the code carefully, I can't figure out where are the 42 header bytes.

According to the doc for the 32E, the data packet should start with a 42 bytes header, followed by 1200 bytes of data (block + encoder + points), terminated by 6 status bytes.

In the pcap reading code, those are discarded (input.cc line 269). I cannot find any trace of it in the InputSocket code. Can anyone explain?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-27 12:00:06 -0600

joq gravatar image

The IP and UDP headers are not returned by a recvfrom() on a UDP socket.

see: http://developerweb.net/viewtopic.php...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2015-02-26 19:57:24 -0600

Seen: 328 times

Last updated: Feb 27 '15