~craftyguy/slowping

a ping-like thing with an intentionally slow resonse
cmd/*: add -h/--help options

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~craftyguy/slowping
read/write
git@git.sr.ht:~craftyguy/slowping

You can also use your local clone with git send-email.

#Building

To build the server:

$ go build ./cmd/slowping-server

To build the client:

$ go build ./cmd/slowping-client

#Running

$ slowping-server -d 2  # delay 2 seconds before responding
...
2022/01/20 00:21:49 got: beep
2022/01/20 00:21:52 got: beep
2022/01/20 00:21:55 got: beep

$ slowping-client -i 1
2022/01/20 00:21:51 got: boop
2022/01/20 00:21:54 got: boop
2022/01/20 00:21:57 got: boop