On Sat, Mar 5, 2011 at 8:49 PM, Han Holl <[email protected]> wrote:
>
> Hi,
>
> The function
> s.recv
> returns a string like "OK\000", at least with my ruby-1.8.7.334-1.fc14.x86_64.
> Maybe there are ruby implementations that make the trailing zero go away.

Hi,

as the message data is an opaque binary blob I am not sure whether
removing the trailing \0 is correct behaviour. If you are receiving a
message with a trailing \0 it means that the sender has included it as
a part of the message. It is perfectly OK to send non-null terminated
blobs as well and removing the last character would possibly break
this.


-- 
Mikko Koppanen
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to