tcp Binding
Bindingtcpserverclient
tcp Binding
Defines a binding with tcp
protocol support, with server
or client
behavior.
Conditional routes based on the hostname authority and network address mask are used to route these streams to an exit
binding.
server
The server
kind tcp
binding listens for inbound socket connections, producing higher level application streams for each remote TCP client.
tcp_server:
type: tcp
kind: server
exit: echo_server
options:
host: 0.0.0.0
port: 12345
client
The client
kind tcp
binding receives inbound application streams and initiates outbound TCP network connections to a remote TCP server address.
tcp_client:
type: tcp
kind: client