3.3.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
tcp_tunnel

Detailed Description

The tcp_tunnel module implements a "Line Protocol". When this protocol is chosen by a Line, it sends data received via TCP out on the Line. It sends data received on the Line out via TCP when it receives <Enter> or fills its 80 character buffer.

As delivered in the SDK, the module listens for a TCP connection on all interfaces addressed to the LOCAL_PORT 10001. When the connection is established, it sends "Connected" to the Line. Subsequently it listens to the line for data to send out via TCP. The #define REMOTE_ADDRESS must be commented out to operate in this listening mode.

Alternately, you can change the #define REMOTE_ADDRESS to either an IP address or a host name to operate in a connect mode. In this case you must also set the #define REMOTE_PORT. When the connection is established, it sends "Connected" to the Line.

Build it from project "tcpTunnelDemo".