[usocket-cvs] r27 - usocket/trunk
ehuelsmann at common-lisp.net
ehuelsmann at common-lisp.net
Fri Feb 3 21:19:43 UTC 2006
Author: ehuelsmann
Date: Fri Feb 3 15:19:43 2006
New Revision: 27
Modified:
usocket/trunk/README
Log:
Update interface documentation.
Modified: usocket/trunk/README
==============================================================================
--- usocket/trunk/README (original)
+++ usocket/trunk/README Fri Feb 3 15:19:43 2006
@@ -2,37 +2,50 @@
$Id$
-;; the backends must implement
-;;
-;; - handle-condition
-;; - open
-;; - close
-;; - listen
-;; - accept
-;; - read-line
-;; - write-sequence
-;; - get-host-by-address
-;; - get-host-by-name
-;;
-;; the backend must wrap all calls to its socket functions in a
-;; handler-case/bind to make sure handle-condition is called.
-;; open should take either the hostname or an vectorized ip
-
-usocket socket interface:
+usocket interface:
- usocket (class)
- - socket-create (function) [ to create a passive socket ]
- socket-connect (function) [ to create an active/connected socket ]
+ socket-connect host port
+ where `host' is a vectorized ip
+ or a string representation of a dotted ip address
+ or a hostname for lookup in the DNS system
- socket-close (method)
- - socket-accept (method)
- - socket-local-address (method)
- - socket-peer-address (method)
+ socket-close socket
+ where socket a previously returned socket
- socket-stream (usocket slot accessor),
- the value of which satisfies the normal stream interface
+ socket-stream socket
+ the return value of which satisfies the normal stream interface
-usocket name resolution interface:
- - get-host-by-address
- - get-host-by-name
+Errors:
+ - usocket-address-in-use-error
+ - usocket-address-not-available-error
+ - usocket-bad-file-descriptor-error
+ - usocket-connection-refused-error
+ - usocket-invalid-argument-error
+ - usocket-no-buffers-error
+ - usocket-operation-not-supported-error
+ - usocket-operation-not-permitted-error
+ - usocket-protocol-not-supported-error
+ - usocket-socket-type-not-supported-error
+ - usocket-network-unreachable-error
+ - usocket-network-down-error
+ - usocket-network-reset-error
+ - usocket-host-down-error
+ - usocket-host-unreachable-error
+ - usocket-shutdown-error
+ - usocket-timeout-error
+ - usocket-unkown-error
+
+Non-fatal conditions:
+ - usocket-interrupted-condition
+ - usocket-unkown-condition
+
+TODO:
+ - socket-create (function) [ to create a passive socket ]
+ - socket-accept (method)
+ - socket-local-address (method)
+ - socket-peer-address (method)
More information about the usocket-cvs
mailing list