[bedevtalk] BONE socket behaviour

pete at jwgibbs.cchem.berkeley.edu pete at jwgibbs.cchem.berkeley.edu
Wed Apr 25 22:36:09 EDT 2007


Well, I'm close to giving up at the moment, but I'll ask one more question
first.

I didn't have that much trouble in the end, configuring things so that
Ruby's socket.so compiled.  (The basic secret was to supply "--without_ipv6"
to the 'extconf.rb' configurator.)  However, things still don't work.

I get a "Protocol Not supported" error when it tries to open a basic
TCP socket, and I can't understand why.  I put in telltale printouts,
and it's calling BONE's "socket()" as "fd = socket(1, 1, 6)", and I
checked these values against the header.  They are appropriately
"domain"="AF_INET", "type"="SOCK_STREAM", and "proto"="IPPROTO_TCP",
which would seem exactly right.  But 'fd' comes back '-1' and errno
is the above.

I tried forcing the proto to 0 ('ANY'), and I then get a valid fd,
but trying to use it for telnet (with a script from the textbook that
works on my Linux box) just hangs until it times out.

So, can anyone suggest what might be wrong here -- in a basic system call?

					-- Pete --



More information about the bedevtalk mailing list