Article ID: 000084597 Content Type: Troubleshooting Last Reviewed: 06/10/2008

Is there a C application example for NicheStack TCP/IP Stack?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

Yes, the Simple Socket Server software example modified for compilation as C source code (via cpp/hpp extensions on application sources.) is available for download from the link at the bottom of the solution.

Simple Socket Server software example was not intially designed to be compiled as C code. It has been modified to fix up linkages from C application tasks to software components in the system library coded in C by adding 'extern "C" {}' around specific cpp application source file include statements.  The application sources have also been modified to accomodate C  strong type checking and enumerated type declarations, as well as increased task stack sizes required to handle the additional C overhead.

The quickest way to get started with these sources is to create a new Nios® II IDE C/C project based on the Simple Socket Server template.  Next, simply delete the existing sources in the new application project, and copy in the sources provided in the link to the downloadable zip file below.  The system library project can be left unchanged, as it will already have MicroC/OS-II and NicheStack TCP/IP Stack software components added by the Simple Socket Server template.

See "Using NicheStack TCP/IP Stack - Nios II Edition Tutorial", available on the Nios II Literature webpage, for details on how to modify either the original Simple Socket Server example or this C version to adapt the example to your ethernet network configuration.

Download Simple Socket Server C example to your computer.

Related Products

This article applies to 1 products

Intel® Programmable Devices