Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

/opentcp/demo/tcp_server_demo.c File Reference


Detailed Description

Author:
Version:
1.0
Date:
10.10.2002
Bug:
Warning:
Todo:

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


Define Documentation

#define TCPS_DEMO_PORT   5001
 

Port number on which we'll be listening for incoming connections

Definition at line 102 of file tcp_server_demo.c.


Variable Documentation

INT8 tcps_demo_soch
 

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.

UINT8 tcps_demo_senddata
 

Used to trigger data sending

Definition at line 100 of file tcp_server_demo.c.


Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by doxygen1.2.18