send_tcp

command
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

send_tcp — one TCP request over the raw host imports.

This sample calls connect_tcp, send_tcp_data and receive_tcp_data directly instead of using the guest SDK, so it shows the pointer-and-length calling convention the SDK hides. Prefer the SDK (see the http_get sample) for ordinary measurements.

Build and run:

make wasm SAMPLE_DIR=examples/debuglets/go/send_tcp
dbl run --wasm examples/debuglets/go/send_tcp/debuglet.wasm \
  --executor EXECUTOR_ID --allow 127.0.0.1 --wait -- -addr 127.0.0.1:8080

The destination must be in the job's --allow list.

Jump to

Keyboard shortcuts

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