clisp-sockets.txt - clic - Clic is an command line interactive client for gopher written in Common LISP
HTML git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
clisp-sockets.txt (1480B)
---
1 http://clisp.cons.org/impnotes.html#socket
2
3 (SOCKET:SOCKET-SERVER &OPTIONAL [port-or-socket])
4 (SOCKET:SOCKET-SERVER-HOST socket-server)
5 (SOCKET:SOCKET-SERVER-PORT socket-server)
6 (SOCKET:SOCKET-WAIT socket-server &OPTIONAL [seconds [microseconds]])
7 (SOCKET:SOCKET-ACCEPT socket-server &KEY :ELEMENT-TYPE :EXTERNAL-FORMAT :BUFFERED :TIMEOUT)
8 (SOCKET:SOCKET-CONNECT port &OPTIONAL [host] &KEY :ELEMENT-TYPE :EXTERNAL-FORMAT :BUFFERED :TIMEOUT)
9 (SOCKET:SOCKET-STATUS socket-stream-or-list &OPTIONAL [seconds [microseconds]])
10 (SOCKET:SOCKET-STREAM-HOST socket-stream)
11 (SOCKET:SOCKET-STREAM-PORT socket-stream)
12 (SOCKET:SOCKET-SERVICE-PORT &OPTIONAL service-name (protocol "tcp"))
13 (SOCKET:SOCKET-STREAM-PEER socket-stream [do-not-resolve-p])
14 (SOCKET:SOCKET-STREAM-LOCAL socket-stream [do-not-resolve-p])
15 (SOCKET:SOCKET-STREAM-SHUTDOWN socket-stream direction)
16 (SOCKET:SOCKET-OPTIONS socket-server &REST {option}*)
17
18
19 (posix:resolve-host-ipaddr &optional host)
20
21 with the host-ent structure:
22
23 name - host name
24 aliases - LIST of aliases
25 addr-list - LIST of IPs as dotted quads (IPv4) or coloned octets (IPv6)
26 addrtype - INTEGER address type IPv4 or IPv6
27
28
29 Errors are of type
30
31 SYSTEM::SIMPLE-OS-ERROR
32 with a 1 element (integer) SYSTEM::$FORMAT-ARGUMENTS list
33
34 This integer stores the OS error reported; meaning WSA* codes on Win32
35 and E* codes on *nix, only: unix.lisp in CMUCL shows
36 BSD, Linux and SRV4 have different number assignments for the same
37 E* constant names :-(
38