Examples

Top  Previous  Next

You can find several simple examples of using the Diamond TCP/IP stack in the folder <3L>My Designs\examples\TCP_IP.

 

These examples need to know the appropriate network parameters to use, and these differ from system to system.

 

Dragons003You must set the correct network parameters before building the examples.

 

The network parameters for all the examples are held in a common header file, <3L>My Designs\examples\TCP_IP\MyIPAddresses.h.You should edit this file and make the appropriate changes.

 

There are two sets of examples: one for TCP and one for UDP.

 

Each example contains two folders: DSP contains the sources that can be used to build a Diamond application to run on the DSP, and PC contains the sources for the corresponding host executable. At the same level as these folders is a Makefile that will build the complete example and put the relevant .exe and .app files in the folder output.

 

There is also a batch file, buildall.bat, in the TCP_IP folder which will build all of the examples.