[nanomsg] Re: RFC links

  • From: Alex Elsayed <eternaleye@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 9 Aug 2013 18:11:06 -0700

On Aug 9, 2013 5:33 PM, "jimmy frasche" <soapboxcicero@xxxxxxxxx> wrote:
>
<snip>
> But I hit a stumbling block when I got to reading the incoming ETSN
> message: what do I do if I read more than the message?

Why read the header all at once?

Read 1 byte -> $version
Read 1 byte -> $size
Read $size bytes -> $servicename

Other related posts: