Re: ANN: trivial-sockets 0.1 asdf-installable

From: Peter Seibel (peter_at_javamonkey.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 01:53:58 GMT

Daniel Barlow <dan@telent.net> writes:

> TRIVIAL-SOCKETS is a socket interface for "undemanding network
> applications". In its current incarnation, it exports one function
> OPEN-STREAM which opens a client socket to some Internet-family stream
> (e.g. TCP-based) server, such as HTTP, SMTP, Finger, Telnet or
> whatever. It accepts hostnames or IP addresses and signals a
> documented kind of error if something goes wrong.
>
> (with-open-stream (s (trivial-sockets:open-stream "www.google.com" 80))
> (format s "HEAD / HTTP/1.0~%Host: www.google.com~%~%")
> (force-output s)
> (loop
> (let ((l (read-line s nil nil)))
> (unless l (return))
> (princ l) (terpri))))
>
> More information by following pointers from
>
> http://www.cliki.net/trivial-sockets
>
> In version 0.1, TRIVIAL-SOCKETS can be installed automatically with
> asdf-install and supports (in alphabetical order) Allegro CL, CLISP,
> CMUCL, OpenMCL, and SBCL
>
> http://www.cliki.net/asdf-install

Since you seem to be going great guns on this, any thought of
providing equally trivial support for the server-side sockets? E.g.:

  (with-open-stream (ss (trivial-sockets::open-server-socket 80))
    (loop
      (with-open-stream (s (trivial-sockets::accept ss))
        (do-http s))))

-Peter

-- 
Peter Seibel                                      peter@javamonkey.com
         Lisp is the red pill. -- John Fraser, comp.lang.lisp


Relevant Pages

  • 2 cents
    ... It is more of a security risk, at least in the past, to run the a finger ... server since it is ... ... If i telnet to a Unix shell from a windows machine, ...
    (comp.security.unix)
  • Re: inetd to take telnet request
    ... flavours of TELNET here - so I read on. ... I know about INETD only from long ago with the RS/6000 UNIX, ... server applications" in the CS IP Configuration Guide: ...
    (bit.listserv.ibm-main)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: RDP access to SBS 2003 - HELP please
    ... Might I add that 'out of the box', when I first got the server it worked ... of it to the telnet prompt and quit. ... Try the remote desktop connection to see if it works. ... the effect that it can't connect to xxx.xxx.xxx.xxx port 23. ...
    (microsoft.public.windows.server.sbs)
  • Re: Telnet session "Shell process may not have been launched" (Solution)
    ... this is a feature change in win2k3 server. ... Microsoft Online Partner Support ... >the 2003 Security Guide suggests you disable the service, ... but Telnet won't be functional without it. ...
    (microsoft.public.windows.server.general)