named pipe problem on Win32

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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. ...
    2. 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 >...
    3. [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). ...
    4. 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...
    5. 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. ...
  3. #2

    Default 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

    > 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
    >
    Probably you need more sleep :-)

    In pipe.c line 158 insert this:

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

    Regards,

    Park Heesob




    Park Heesob Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139