ping

command
v0.2.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL