added the GetSeed() call and handled more events

This commit is contained in:
2024-11-20 00:31:14 +09:00
parent fa336bfb07
commit 188900c1ae
7 changed files with 260 additions and 93 deletions

View File

@ -3,3 +3,20 @@ hodu client <servee> <peer1> [<peer2> ...]
client requests server that it grants access to the list of peers
reserver
## server.json
```
{
"server-addr": "127.0.0.1:9999",
"peer-addrs": [
"127.0.0.1:22",
"127.0.0.1:80"
]
}
```
## create a server
```
curl -X POST --data-binary @server.json http://127.0.0.1:7777/servers
```