Skip to content

feat(turn): add TCP TURN client example and expose server/local addr#83

Open
nightness wants to merge 1 commit intowebrtc-rs:masterfrom
Brainwires:feat/tcp-turn-example
Open

feat(turn): add TCP TURN client example and expose server/local addr#83
nightness wants to merge 1 commit intowebrtc-rs:masterfrom
Brainwires:feat/tcp-turn-example

Conversation

@nightness
Copy link
Copy Markdown

Summary

  • Add examples/turn_client_tcp.rs demonstrating TURN relay over TCP
  • Expose turn_server_addr() and local_addr() accessors on the TURN client
  • Enables TCP fallback when UDP TURN is blocked (common in corporate firewalls)

Test plan

  • cargo build --example turn_client_tcp -p rtc-turn
  • Run against a TURN server with TCP support

🤖 Generated with Claude Code

…ocal_addr

- Add rtc-turn/examples/turn_client_tcp.rs: demonstrates TURN over TCP using
  RFC 4571 framing (TcpFrameDecoder + frame_packet from rtc-shared)
- Make Client::turn_server_addr() and Client::local_addr() public so callers
  (e.g. the ICE gatherer in the async layer) can identify TURN server addresses
- Fix relay.rs and mod.rs call sites from the return-type change
  (Result → Option for turn_server_addr)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant