Examples: add tcp serve #21

Merged
decentral1se merged 1 commits from examples-tcp-serve into main 2026-10-19 15:18:42 +00:00
Collaborator

this adds an example showing how we can set up a golang http server served exclusively over the iroh-go connection we create and listen on. as a full example, it makes use of dumbpipe (releases) and curl.

the example currently creates a simple echo server, that reads request from the iroh connection and returns the data sent as its response

see prior investigations and notes leading to this PR in #20 (comment)

ai use policy: #neverslop

this adds an example showing how we can set up a golang http server served exclusively over the iroh-go connection we create and listen on. as a full example, it makes use of [dumbpipe](https://www.dumbpipe.dev/) ([releases](https://github.com/n0-computer/dumbpipe/releases)) and curl. the example currently creates a simple echo server, that reads request from the iroh connection and returns the data sent as its response see prior investigations and notes leading to this PR in https://git.coopcloud.tech/decentral1se/iroh-go/pulls/20#issuecomment-43448 ai use policy: #neverslop
cblgh added 1 commit 2026-10-19 14:27:37 +00:00
examples: add tcp-serve
continuous-integration/drone/push Build is passing
0d1a72289a
cblgh force-pushed examples-tcp-serve from 8f9a64f13a to 0d1a72289a 2026-10-19 14:27:37 +00:00 Compare
cblgh changed title from Examples add tcp serve to Examples: add tcp serve 2026-10-19 14:28:07 +00:00
decentral1se left a comment
Owner

🌠

🌠
decentral1se merged commit 4039fb4b37 into main 2026-10-19 15:18:42 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: decentral1se/iroh-go#21