Xirsys.XTurn.Actions.Connect (xturn v2.0.0)

Copy Markdown View Source

Pipeline action for TURN Connect requests.

What problem this solves

For TCP relay allocations, the client asks the server to open an outbound TCP connection to a peer. Connect performs that dial and returns a CONNECTION-ID the client uses with ConnectionBind to splice data paths.

Runs in the @connect chain after Authenticates; TCP allocations only.

Internal

Pipeline action only; not part of the public application API.

RFCs

Summary

Functions

Opens an outbound TCP connection to XOR-PEER-ADDRESS on the allocation.

Functions

process(conn)

Opens an outbound TCP connection to XOR-PEER-ADDRESS on the allocation.

Returns conn with success and CONNECTION-ID, or 400/403/437/446/447 on error.