unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* read-string!/partial on non-file ports
@ 2007-09-10 19:25 Luigi Semenzato
  2007-09-10 19:51 ` Stephen Compall
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Luigi Semenzato @ 2007-09-10 19:25 UTC (permalink / raw)
  To: guile-user

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>).

Two questions.

1. Do I have other choices?  I cannot find any.

2. If I have no other choices, should I write my own extension
to do block read/writes on pipes, or should I coordinate with
you folks to add this feature to guile?

Thanks!
Luigi


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-11  7:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 19:25 read-string!/partial on non-file ports Luigi Semenzato
2007-09-10 19:51 ` Stephen Compall
2007-09-10 20:35   ` Luigi Semenzato
2007-09-11  7:18     ` Thien-Thi Nguyen
2007-09-10 20:42 ` Mike Gran
2007-09-10 23:49   ` Kevin Ryde
2007-09-10 23:19 ` Ludovic Courtès
2007-09-11  5:00   ` Luigi Semenzato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).