Blank TCP demo application showing TCP functions and how applications might use them. Please note that this is an example for a TCP client application - the kind of application that initiates communication and does not accept incoming connections.
Definition in file tcp_client_demo.c.
Go to the source code of this file.
Defines | |
#define | TCPC_DEMO_RMT_IP 0xAC100101 |
#define | TCPC_DEMO_RMT_PORT 5001 |
Variables | |
INT8 | tcpc_demo_soch |
Socket handle holder for this application. | |
UINT8 | tcpc_demo_senddata |
UINT8 | tcpc_demo_connect |
|
Remote IP address this application will connect to Definition at line 105 of file tcp_client_demo.c. |
|
Port number on remote server we'll connect to Definition at line 106 of file tcp_client_demo.c. |
|
This variable holds the assigned socket handle. Note that this application will reserve one TCP socket immediately and will not release it. For saving resources, TCP sockets can also be allocated/deallocated dynamically. Definition at line 99 of file tcp_client_demo.c. |
|
Used to trigger data sending Definition at line 101 of file tcp_client_demo.c. |
|
Used to trigger connection initiation to remote host Definition at line 103 of file tcp_client_demo.c. |