[bedevtalk] recvmsg etc. for BONE?
Alexander G. M. Smith
agmsmith at rogers.com
Tue Apr 24 08:12:14 EDT 2007
pete at jwgibbs.cchem.berkeley.edu wrote on Mon, 23 Apr 2007 20:43:06 -0700:
> The problem is basically that Ruby's 'socket.c' makes use of 'sendmsg'
> and 'recvmsg', which aren't implemented in BONE. It looks as if they
> *could* be added with a fairly simple wrapper to the other socket calls,
> but I don't think I want to attempt it myself. So I'm wondering if
> anyone else has done such a thing -- or knows some other way around it?
That's odd. Usually the problem is that they use read/write on a file
handle that happens to be a network socket. Which doesn't work in BeOS
since network sockets are separate from file handles. Instead R5 uses
"send" and "recv" function calls. But that's BeOS R5, BONE does something
else. At least it will be easier to find "sendmsg" and "recvmsg" rather
than looking for "read" and "write".
The normal trick for porting code was to go and change the read/write and
open/close to more descriptive unique function names everywhere they were used.
Then hook that into the BeOS network function calls with wrapper functions.
- Alex
More information about the bedevtalk
mailing list