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

/opentcp/demo/udp_demo.c File Reference


Detailed Description

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

Blank UDP demo application showing UDP functions and how applications might use them.

Definition in file udp_demo.c.

Go to the source code of this file.

Defines

#define UDP_DEMO_PORT   5000
#define UDP_DEMO_RMTHOST_IP   0xAC100101
#define UDP_DEMO_RMTHOST_PRT   5001

Variables

UINT8 udp_demo_soch
 Socket handle holder for this application.

UINT8 udp_demo_senddata


Define Documentation

#define UDP_DEMO_PORT   5000
 

Port number on which we'll work

Definition at line 99 of file udp_demo.c.

#define UDP_DEMO_RMTHOST_IP   0xAC100101
 

Remote IP address this application will send data to

Definition at line 101 of file udp_demo.c.

#define UDP_DEMO_RMTHOST_PRT   5001
 

Port number on remote server we'll send data to

Definition at line 103 of file udp_demo.c.


Variable Documentation

UINT8 udp_demo_soch
 

This variable holds the assigned socket handle. Note that this application will reserve one UDP socket immediately and will not release it. For saving resources, UDP sockets can also be allocated/deallocated dynamically.

Definition at line 95 of file udp_demo.c.

UINT8 udp_demo_senddata
 

Used to trigger data sending

Definition at line 97 of file udp_demo.c.


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