Documentation
¶
Overview ¶
ping — ICMPv4 latency probe, written with the Debuglet Go SDK.
Sends `-iter` ICMP echo requests to `-addr` (one per second) and prints the round-trip time of each reply. Build with:
make wasm SAMPLE_DIR=local/wasm_samples/go/ping
Run (args after `--` are passed verbatim to the guest):
dbl run --wasm local/wasm_samples/go/ping/debuglet.wasm \ --executor EXECUTOR_ID --allow 1.1.1.1 --wait -- -addr 1.1.1.1 -iter 5
ICMP needs a raw socket, so the executor must be allowed to open one; on an executor without that permission the connect call ends the job. The address must also be in the job's --allow list, and only addresses you are authorized to probe belong there.
Click to show internal directories.
Click to hide internal directories.