--- Luigi Semenzato <[EMAIL PROTECTED]> wrote: > Greetings, > > I would like to move binary data between two guile > applications across a pipe (opened with open-input-output-pipe). > Read-char and write-char in a loop are going to be too slow. > Read-string!/partial and write-string/partial are exactly what > I need but they only work on file ports. (I get this error: > Wrong type argument in position 2 (expecting open file port): > #<input-output: soft 56f1d0>). > Luigi-
In the past, I know that I have used read-string!/partial to read from a socket. I wrote a peer-to-peer ap where I used "(display data socket)" to send and "(read-string!/partial block socket-port)" to receive. I haven't tried it with a pipe, however. (I used it in a rather confusing program found at http://lonelycactus.com/code/schmolester , but, that code is pretty ugly to use as an example.) Hope this helps, Mike Gran _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user