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

/opentcp/demo/tcp_client_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 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


Define Documentation

#define TCPC_DEMO_RMT_IP   0xAC100101
 

Remote IP address this application will connect to

Definition at line 105 of file tcp_client_demo.c.

#define TCPC_DEMO_RMT_PORT   5001
 

Port number on remote server we'll connect to

Definition at line 106 of file tcp_client_demo.c.


Variable Documentation

INT8 tcpc_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 99 of file tcp_client_demo.c.

UINT8 tcpc_demo_senddata
 

Used to trigger data sending

Definition at line 101 of file tcp_client_demo.c.

UINT8 tcpc_demo_connect
 

Used to trigger connection initiation to remote host

Definition at line 103 of file tcp_client_demo.c.


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