From: Park Heesob Date: 2003-11-22T10:48:59+09:00 Subject: Re: named pipe problem on Win32 Hi, ----- Original Message ----- From: "Daniel Berger" To: "ruby-talk ML" Sent: Saturday, November 22, 2003 8:37 AM Subject: named pipe problem on Win32 > Hi all, > > I'm trying to get a named-pipe module built for Ruby > for Win32. I've largely been using the Perl version > as a basis for my own code. I've run into a little > snag - the pipes can talk to each other, but all I > ever get is a single character. > > I've checked the code that I have so far into CVS on > RubyForge. It's a bit long, so I'd rather not post > here. You can find it at: > > http://rubyforge.org/scm/?group_id=85 > > Included are a sample client and server program under > the 'test' directory. To test, simply open 2 > terminals, start the server first, then start the > client. You'll see what I mean. > > Any and all help appreciated. > > Regards, > > Dan > Probably you need more sleep :-) In pipe.c line 158 insert this: strcpy(lpBuffer,RSTRING(rbData)->ptr); Regards, Park Heesob