From: Robert Klemme Date: 2009-06-30T22:58:57+09:00 Subject: Re: Question on networking with custom binary interface. 2009/6/30 Greg Chambers : > Robert Klemme wrote: >> I don't have anything to add to Joel's excellent reply, but one thing >> caught my eye: >> >> On 30.06.2009 00:08, Greg Chambers wrote: >>> My main concern is that the documentation is VERY specific. >> >> That sounds odd to me.  Most of the time people complain that there is >> no documentation or that it's inaccurate.  Apparently you got >> documentation leaving no questions and are concerned.  This is the best >> that could happen to you in this situation.  Why are you concerned? > Well my concern was since this was specific documentation intended for > C++ programs, I was worried about how Ruby would attempt to handle this > under the hood.  I mean, I would not even worry if the client program > was also a Ruby program because I could be sure that one Ruby program > would know what another Ruby program is saying, but I couldn't be sure > that some proprietary C++ program would know what a Ruby program was > trying to say.  Mostly I was worried about compatibility of data between > programs.  That is why I was worried about how specific the > documentation was.  Otherwise it is greatly appreciated. Well, over the network it's just bytes and I haven't heard yet that Ruby bytes are any different from C++ bytes. :-) The only tricky part is to get the ordering of bytes right. See also: http://en.wikipedia.org/wiki/Network_byte_order#Endianness_in_networking > Also, for a quick switch in topic, thanks you guys for your help.  You > are really helping an intern out. You're welcome! Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/