From: Al Chou Date: 2001-07-10T15:18:01+09:00 Subject: [ruby-talk:17594] Re: low-level TCP/IP manipulations? --- Yukihiro Matsumoto wrote: > In message "[ruby-talk:17560] low-level TCP/IP manipulations?" > on 01/07/10, Al Chou writes: > > |I'm testing some network hardware and software and (think I) need to be able > to > |manipulate TCP and/or IP at kind of a low level. For instance, one of my > test > |cases includes the requirement "device should return a TCP/IP No Listener > error > |code". I'm writing an emulator for this device in Ruby and wondering > whether I > |can get such fine-grained control over network communications from within > Ruby. > > Hmm, I'm sorry that I don't know how to "TCP/IP No Listener error > code", even in C, but Socket class provides pretty direct access to > low level socket, so that it might be useful for your task. > > matz. Thanks, matz. I guess I'll have a look at the C source for Socket tomorrow to figure out whether I can do it. The fact that this is my first foray into network programming isn't helping (can't I just have a project I can solve with a parallel message passing library?). Al ===== Albert Davidson Chou Get answers to Mac questions at http://www.mac-mgrs.org/ . __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/