|
|
PROTOCOL.md - dreadlock-ng - Remote locking daemon with a funny name. |
|
|
 |
git clone git://bitreich.org/dreadlock-ng git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dreadlock-ng (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
PROTOCOL.md (535B) |
|
|
|
--- |
|
|
|
1 # Dreadlock Protocol |
|
|
|
2 |
|
|
|
3 https://github.com/jamwt/dreadlock/blob/master/README.md |
|
|
|
4 |
|
|
|
5 ## Port |
|
|
|
6 |
|
|
|
7 * original dreadlock: 6001 |
|
|
|
8 * dreadlock-ng: ingreslock (1524) |
|
|
|
9 * Because it is fun to reuse and for historical reasons. |
|
|
|
10 |
|
|
|
11 ## Locking |
|
|
|
12 |
|
|
|
13 C: lock $lockname $timeout\r\n |
|
|
|
14 $lockname ... a-zA-Z0-9 |
|
|
|
15 $timeout ... 0-9 in milliseconds |
|
|
|
16 |
|
|
|
17 On Success: |
|
|
|
18 S: l locked\r\n |
|
|
|
19 |
|
|
|
20 On Timeout: |
|
|
|
21 S: t timeout\r\n |
|
|
|
22 |
|
|
|
23 ## Unlocking |
|
|
|
24 |
|
|
|
25 C: unlock $lockname\r\n |
|
|
|
26 |
|
|
|
27 On Success: |
|
|
|
28 S: u unlocked\r\n |
|
|
|
29 |
|
|
|
30 ## Errors |
|
|
|
31 |
|
|
|
32 S: e $errormsg\r\n |
|
|
|
33 |
|
|
|
34 ## Connection Closing |
|
|
|
35 |
|
|
|
36 * All locks will be unlocked. |
|
|
|
37 |
|