named pipe problem on Win32

D

Daniel Berger

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/
 
P

Park Heesob

Hi,
----- Original Message -----
From: "Daniel Berger" <[email protected]>
To: "ruby-talk ML" <[email protected]>
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top