Go to file
2024-11-23 12:41:49 +09:00
cmd set proper dependency in Makefile 2024-11-23 12:41:49 +09:00
c-peer.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
client.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
frame.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
go.mod added signal handler to the client 2024-11-13 02:20:25 +09:00
go.sum added some experimental code using grpc 2024-11-12 22:59:37 +09:00
hodu_grpc.pb.go updated Makefile to call protoc only if it's needed. 2024-11-23 12:34:23 +09:00
hodu.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
hodu.pb.go updated Makefile to call protoc only if it's needed. 2024-11-23 12:34:23 +09:00
hodu.proto reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
Makefile set proper dependency in Makefile 2024-11-23 12:41:49 +09:00
packet.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
README.md added the GetSeed() call and handled more events 2024-11-20 00:31:14 +09:00
s-peer.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00
server.go reorganized the source to place the resuable code under the hodu package and keep the command entry point in the main package under the cmd directory 2024-11-23 12:30:23 +09:00

hodu client [ ...]

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