[plt-scheme] capturing output from different threads

Matthew Flatt mflatt at cs.utah.edu
Sat Mar 8 16:21:57 EST 2008


At Sat, 08 Mar 2008 21:19:17 +0000, Dave Griffiths wrote:
> size=scheme_get_byte_string("log",outport,msg,0,256,0,0,NULL);
> (where msg is now an array of 256 bytes)
> 
> I just get -1 (EOF?) returned. The same for scheme_get_byte and friends
> called on that port.

scheme_get_byte_string() is for use on input ports, only.

I think you want to create a pipe with scheme_pipe(), which gives you
an input port and an output port.

Matthew




More information about the plt-scheme mailing list