Examples

Top  Previous  Next

A number of examples are provided with the 3L Diamond TCP/IP stack.

 

The examples allow testing all basic communication between an embedded processor running Diamond and a host PC.

The examples are split into two sets of software:

Embedded software: runs on the embedded processor.
Host software: runs on a host PC.

 

Host software projects should be used with MS Visual Studio 2008 (VS only in further text).

 

Projects for DSP are located at: tcpip\src\diamond\examples\

Projects for PC are located at: tcpip\src\win32_winsock\examples\ (solution examples.sln)

 

There are these basic projects in each set:

Simple UDP sender (\UDP\Simple_send\  for DSP, project UDP_simple_sender_PC in VS)
Simple UDP receiver (\UDP\Simple_receive\ for DSP, project UDP_simple_receiver_PC in VS)
Simple TCP server (\TCP\Simple_Server\ for DSP, project TCP_simple_server_PC in VS)
Simple TCP client (\TCP\Simple_Client\ for DSP, project TCP_simple_client_PC in VS)
TCP loopback client (\TCP\Remote_loopback\ for DSP, project TCP_remote_loopback_PC in VS)

 

Every project in VS solution has two forms. One with ending _PC that is compilable for Windows environment under VS and one with _DSP ending that can not be compiled under VS, it is only easy way how to edit source files for DSP in comfort editor of VS.

There are some other projects in solution. These are useful for quick test of stack performance in given environment.