guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Separate textual/binary ports vs. mixed ports


From: Ludovic Courtès
Subject: Re: Separate textual/binary ports vs. mixed ports
Date: Tue, 05 Jun 2012 14:47:47 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux)

Hi!

Noah Lavine <address@hidden> skribis:

> I agree that separate binary and textual ports are cleaner, but what
> about using a port to deal with a mixed binary/textual protocol, like
> HTTP? I think the cleanest way to deal with that would be to have a
> port where you first read characters and then read binary data.

Yes, but I think ‘transcoded-port’ in R6 helps solve that (you open a
binary port, then use ‘transcoded-port’ to open a textual port above it.)

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]