[Ecls-list] Binary sock I/O.

David Brown lisp at davidb.org
Wed Oct 15 06:22:55 UTC 2008


On Wed, Oct 15, 2008 at 08:04:12AM +0200, Juan Jose Garcia-Ripoll wrote:
>On Wed, Oct 15, 2008 at 7:52 AM, David Brown <lisp at davidb.org> wrote:
>> The problem seems to be that ecl_make_stream_from_fd always makes
>> character streams.  In fact the only way it seems to be able to get a
>> binary stream is with 'open' directly.
>
>This week I and the next one I will be upgrading the streams code to
>work with POSIX file handlers. In the mean time you may either tweak
>the code in file.d or copy-paste and and make your own routine.
>Actually I do not understand why I did not use binary mode, since it
>is used elsewhere in ECL.

I'm not sure if that's my problem, or even really what it is.  I'm
trying to do write-sequence of (unsigned-byte 8) data, and the stream
element type is base-character.  This is the part I'm concerned about.

I don't think adding the 'b' to the mode has any effect on Linux.

Thanks,
David




More information about the ecl-devel mailing list