Re: simple-streams



On Mon, 29 Aug 2005 15:05:02 +0200, <der_julian@xxxxxx> wrote:
> GP lisper <spambait@xxxxxxxxxxxxxxx> writes:
>
>> trivial-http
>> cl-yahoo
>
> trivial-http would solve the "Making a HTTP GET request"-problem, but
> does not show me how to use the simple-stream interface.

I'm not sure what you are asking here. The difference between simple
and grey streams, or how to use the TCP streams? If the latter,
'trivial-sockets' (which trivial-http depends upon) shows basic telnet
connections.

(defun test-server ()
(let ((stream (trivial-sockets:open-stream "192.168.100.1" 6666)))
(loop for message = (read stream nil :eof)
until (eq message :eof)
do (print message))))


--
Program A uses CLOS, Program B is implemented with structs, leading
to a fourfold increase in execution speed. --J. B. Heimatseiten
.