Documentation
¶
Overview ¶
send_tcp — one TCP request over the raw host imports.
This example calls connect_tcp, send_tcp_data and receive_tcp_data directly instead of using the debuglet SDK, so it shows the pointer-and-length calling convention the SDK hides. Prefer the SDK (see the http_get example) 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.
Click to show internal directories.
Click to hide internal directories.