tbackends.txt - clic - Clic is an command line interactive client for gopher wr… | |
git clone git://bitreich.org/clic/ git://hg6vgqziawt5s4dj.onion/clic/ | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
tbackends.txt (1182B) | |
--- | |
1 -*- text… | |
2 | |
3 $Id$ | |
4 | |
5 A document to describe which APIs a backend should implement. | |
6 | |
7 | |
8 Each backend should implement: | |
9 | |
10 Functions: | |
11 | |
12 - handle-condition | |
13 - socket-connect | |
14 - socket-listen | |
15 - get-hosts-by-name [ optional ] | |
16 - get-host-by-address [ optional ] | |
17 | |
18 - wait-for-input-internal (new in 0.4.x) | |
19 | |
20 Methods: | |
21 | |
22 - socket-close | |
23 - socket-accept | |
24 - get-local-name | |
25 - get-peer-name | |
26 | |
27 and - for ip sockets - these methods: | |
28 | |
29 - get-local-address | |
30 - get-local-port | |
31 - get-peer-address | |
32 - get-peer-port | |
33 | |
34 | |
35 An error-handling function, resolving implementation specific errors | |
36 to this list of errors: | |
37 | |
38 - address-in-use-error | |
39 - address-not-available-error | |
40 - bad-file-descriptor-error | |
41 - connection-refused-error | |
42 - invalid-argument-error | |
43 - no-buffers-error | |
44 - operation-not-supported-error | |
45 - operation-not-permitted-error | |
46 - protocol-not-supported-error | |
47 - socket-type-not-supported-error | |
48 - network-unreachable-error | |
49 - network-down-error | |
50 - network-reset-error | |
51 - host-down-error | |
52 - host-unreachable-error | |
53 - shutdown-error | |
54 - timeout-error | |
55 - unkown-error | |
56 | |
57 and these conditions: | |
58 | |
59 - interrupted-condition | |
60 - unkown-condition |