Go to file
2024-11-20 00:48:02 +09:00
c-peer.go upcast net.Conn to *net.TCPConn as soon as client-side peer connection is established 2024-11-20 00:35:58 +09:00
client.go added the PEER_ABORTED message 2024-11-20 00:48:02 +09:00
frame.go added some experimental code using grpc 2024-11-12 22:59:37 +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.proto added the PEER_ABORTED message 2024-11-20 00:48:02 +09:00
main.go added the GetSeed() call and handled more events 2024-11-20 00:31:14 +09:00
main.proto added some experimental code using grpc 2024-11-12 22:59:37 +09:00
Makefile added some experimental code using grpc 2024-11-12 22:59:37 +09:00
packet.go added the PEER_ABORTED message 2024-11-20 00:48:02 +09:00
README.md added the GetSeed() call and handled more events 2024-11-20 00:31:14 +09:00
s-peer.go added the GetSeed() call and handled more events 2024-11-20 00:31:14 +09:00
server.go added the PEER_ABORTED message 2024-11-20 00:48:02 +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