149 Commits

Author SHA1 Message Date
634de1756a added nil checks before accessing the cfg pointer 2024-12-07 01:49:11 +09:00
bc3bb06008 added cmd/config.go 2024-12-07 01:44:54 +09:00
e51077a749 some code to handle configuration file and tls 2024-12-07 00:54:19 +09:00
e144a39c5c attempting to support TLS 2024-12-06 00:52:33 +09:00
e95d196cc0 handled route_stopped in client.go 2024-12-05 23:05:47 +09:00
e2d25cb53b enhanced to be able to specify the service network for server-side peers 2024-12-05 18:24:42 +09:00
cd5bbedc11 renamed AddrStr to TargetAddrStr in RouteDesc 2024-12-05 01:31:59 +09:00
53777f1f60 cleaed up most of the logging lines 2024-12-05 01:26:44 +09:00
d4f00d63f9 cleaned up quite some log messages on the server side 2024-12-03 20:28:04 +09:00
d167308879 update to support multiple control server addresses 2024-12-03 11:52:46 +09:00
b17f3af7ad added the id field to ServerConn 2024-12-03 00:55:19 +09:00
eef1941dea added ReqStopAllServerConns() to the Server type 2024-12-02 09:46:10 +09:00
c901f88023 some incremetal changes 2024-12-02 02:19:50 +09:00
8346011d27 adding some server-side control handlers 2024-12-01 21:47:11 +09:00
18b3028a46 implemented client peer deletion 2024-12-01 19:11:12 +09:00
4d927b9a7f specified CGO_ENABLED=0 in Makefile 2024-12-01 17:45:31 +09:00
96442bb93a implemented an api call at /client-conns/id/routes/id/peers/id 2024-12-01 17:20:16 +09:00
74fb40d44f guarded ext_svs with ext_mtx in client.go and server.go 2024-11-30 20:24:30 +09:00
b792997184 writing clent-side api code for /servers/id/routes/id/peers 2024-11-30 20:06:59 +09:00
2b29d05a4a minor touch up 2024-11-30 18:59:36 +09:00
049937a53b a few lines of comment text 2024-11-30 15:38:06 +09:00
224238cb89 fixed ridiculous flaw 2024-11-30 13:24:29 +09:00
bee458a47d addimg more client side manpulation code 2024-11-30 03:08:20 +09:00
f6de948a5a changed to store the target server address string as given by the caller and not resolve the string 2024-11-30 02:53:47 +09:00
4625ed3328 renames some api endpoints: e.g. /servers to /client-conns, /servers/xxx/peers to /client-conns/xxx/routes 2024-11-30 00:19:39 +09:00
9667a9b2e2 implemented POST to servers/X/peers
enhanced GET /servers
2024-11-28 01:29:02 +09:00
fdae537c84 implementing more client ctl commands 2024-11-26 09:41:15 +09:00
f62e77400a filling code for client-side control channel 2024-11-25 22:55:03 +09:00
dcdadbeb20 separating http handler to separate structs
using the pattern supported by http.ServeMux since go 1.22
2024-11-25 19:46:18 +09:00
903e4cf6d3 updating for robustness 2024-11-24 22:33:19 +09:00
93f84fbc98 trying make code more robust 2024-11-24 20:39:51 +09:00
493309a4e9 switched to use own function for logging 2024-11-23 20:13:07 +09:00
37c600d0f6 fixed the broken code for enhanced logging mechanism 2024-11-23 17:20:53 +09:00
30f997d8e8 enhancing logging. code broken 2024-11-23 14:49:04 +09:00
afb3ad33af set proper dependency in Makefile 2024-11-23 12:41:49 +09:00
dcc0c6afc6 updated Makefile to call protoc only if it's needed.
added the generated grpc code to repository
2024-11-23 12:34:23 +09:00
a78a0a4fc4 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
9d7a843b4c started add log messages 2024-11-21 01:11:01 +09:00
e018bc9cab implemented cancellation of the client-peer connection attempt 2024-11-20 02:47:58 +09:00
b981748b78 added the PEER_ABORTED message 2024-11-20 00:48:02 +09:00
de85c4c754 upcast net.Conn to *net.TCPConn as soon as client-side peer connection is established 2024-11-20 00:35:58 +09:00
188900c1ae added the GetSeed() call and handled more events 2024-11-20 00:31:14 +09:00
fa336bfb07 filling impleemantion with more code 2024-11-18 22:25:59 +09:00
847f71d914 more logic implemented 2024-11-17 14:57:56 +09:00
4098b47f41 restructuring the client-side task handling 2024-11-17 00:47:15 +09:00
7333e40d9c used 'flag' to parse command line 2024-11-16 00:03:42 +09:00
662f623f4c tryng to structure the client code similar to the server code 2024-11-13 23:14:43 +09:00
9c927464b0 added signal handler to the client 2024-11-13 02:20:25 +09:00
f02536bf24 added some experimental code using grpc 2024-11-12 22:59:37 +09:00