Blank TCP demo application showing TCP functions and how applications might use them. Please note that this is an example for a TCP server application - the kind of application that waits for a connection and does not initiate connection establishment towards other hosts.
Definition in file tcp_server_demo.c.
Go to the source code of this file.
Defines | |
#define | TCPS_DEMO_PORT 5001 |
Variables | |
INT8 | tcps_demo_soch |
Socket handle holder for this application. | |
UINT8 | tcps_demo_senddata |
|
Port number on which we'll be listening for incoming connections Definition at line 102 of file tcp_server_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 98 of file tcp_server_demo.c. |
|
Used to trigger data sending Definition at line 100 of file tcp_server_demo.c. |