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

···

Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Hi,

···

----- Original Message -----
From: “Daniel Berger” djberg96@yahoo.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
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 :slight_smile:

In pipe.c line 158 insert this:

strcpy(lpBuffer,RSTRING(rbData)->ptr);

Regards,

Park Heesob