/[usocket]/trivial-sockets/README
ViewVC logotype

Contents of /trivial-sockets/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 365 - (show annotations)
Sun Jul 13 18:19:33 2008 UTC (5 years, 9 months ago) by ehuelsmann
File size: 1983 byte(s)
Update trivial-sockets/README.
1
2 *
3 * NOTE NOTE ***** IMPORTANT *****
4 *
5 *
6 * This package is no longer maintained. If you're looking for a sockets
7 * library which does receive maintenance, check out usocket.
8 *
9 * You can find usocket at http://common-lisp.net/project/usocket/
10 *
11
12
13 Trivial-sockets:
14 server and client stream sockets for undemanding network applications
15
16 Usage examples:
17
18 (with-open-stream (s (trivial-sockets:open-stream "www.google.com" 80))
19 (format s "HEAD / HTTP/1.0~%Host: www.google.com~%~%")
20 (force-output s)
21 (loop
22 (let ((l (read-line s nil nil)))
23 (unless l (return))
24 (princ l) (terpri))))
25
26 (trivial-sockets:with-server (s (:port 8913 :reuse-address t))
27 (loop
28 (with-open-stream (c (trivial-sockets:accept-connection s))
29 (read-line c)
30 (format c "Hi there!~%"))))
31
32
33 Proper documentation is in trivial-sockets.texi. If you have Texinfo
34 installed you can convert this to DVI or PDF using texi2dvi or
35 texi2pdf, or use makeinfo to create an Info file for use with Emacs or
36 the standalone info reader.
37
38
39 Installation:
40
41 Use asdf-install.
42
43 * (asdf:operate 'asdf:load-op 'asdf-install)
44 * (asdf-install:install 'trivial-sockets)
45
46 Or if you don't have asdf-install but you do have asdf, create a
47 symlink from a directory in your asdf:*central-registry* and run
48
49 * (asdf:operate 'asdf:load-op 'trivial-sockets)
50
51 Or if you don't have asdf, either (a) get it, or (b) compile the files by
52 hand in an order that satisfies the dependencies in trivial-sockets.asd
53
54
55 References:
56
57 http://www.cliki.net/asdf-install
58 http://www.cliki.net/asdf
59
60
61 Thanks to: (alphabetical order)
62
63 - Andras Simon for Armed Bear CL support
64 - Edi Weitz, by whose asdf-install work some of the code was inspired
65 - Oliver Markovic, for OpenMCL support
66 - Rudi Schlatte, for a ton of stuff including OpenMCL and CMUCL server
67 support, work on the manual, and also the Stevens justification I
68 needed to make SO_REUSEADDR default
69 - Sven Van Caekenberghe provided Lispworks support
70

  ViewVC Help
Powered by ViewVC 1.1.5