Lisp HUG Maillist Archive

Write CRLF to a socket-stream

Hello,

I understand how to write-line with a CRLF end of line to a file stream 
by specifying an external-format.  However, I don't see how to do the 
same when using a comm:socket-stream.

How can I use an external-format with a comm:socket-stream?


Best Regards,
Cam


Re: Write CRLF to a socket-stream

One way, not LW-specific, would be to wrap the stream with a flexi stream:

  http://weitz.de/flexi-streams/

HTH,
Edi.

-- 
European Common Lisp Meeting 2011
http://weitz.de/eclm2011/
http://eclm.eurolisp.org/


On Wed, Jun 29, 2011 at 12:52 PM, Camille Troillard
<camille@osculator.net> wrote:
>
> Hello,
>
> I understand how to write-line with a CRLF end of line to a file stream by
> specifying an external-format.  However, I don't see how to do the same when
> using a comm:socket-stream.
>
> How can I use an external-format with a comm:socket-stream?
>
>
> Best Regards,
> Cam
>
>


Updated at: 2020-12-10 08:37 UTC