Ask a Question related to Ruby, Design and Development.
-
Daniel Berger #1
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:
[url]http://rubyforge.org/scm/?group_id=85[/url]
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
[url]http://companion.yahoo.com/[/url]
Daniel Berger Guest
-
Having a problem with a short pipe read
I'm using the DBI module and along with a pipe read (ie, my $line = <$handle>) I populate a database table with the parsed results of $line. ... -
ssh 2 tunnel to named pipe not working - please help
OK, this is officially escalated to an annoyance. I have previously been able to set up a scenario as follows: ssh user@targethost 'cat >... -
[ANN] win32-pipe 0.0.1
Hi all, I'm pleased to announced the release of win32-pipe 0.0.1. This in an interface for named pipes on the Win32 platform (NT, 2000, XP). ... -
pipe - non blocking read? (fork/Win32)
Hi, I'm using windows, I want to create a new process using fork (in Activestate's Perl 5.6.x for some x) and communicate between the parent and... -
fflush to pipe hangs when child at other end closes the pipe
My AIX 4.3.3 application calls popen(name, "w") to create a pipe to a the named child executable. All is well as long as the child stays active. ... -
Park Heesob #2
Re: named pipe problem on Win32
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
Probably you need more sleep :-)> 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:
>
> [url]http://rubyforge.org/scm/?group_id=85[/url]
>
> 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
>
In pipe.c line 158 insert this:
strcpy(lpBuffer,RSTRING(rbData)->ptr);
Regards,
Park Heesob
Park Heesob Guest



Reply With Quote

