TCP Tunnels allows tunnelling of tcp connections from a client to a device over a nabto connection. Nabto Streams is used to stream the data reliably over the Nabto Connection.
The client opens a TCP listener which listens for incoming TCP connections on the local port. When a connection is accepted by the TCP listener, a new stream is created to the device. When the stream is created on the device, the device opens a tcp connection to the specified service. Once this connection is opened TCP data flows from the TCP Client on the client side to the TCP Server on the device side.