Real Time Logic Logo

C/C++ Server Pages

Developing server based applications using the Barracuda Web Server is done in C/C++ using what we refer to as C Server Pages or CSP for short. CSP is a technology that makes it possible to insert C or C++ code in HTML template files by using special CSP tags. The technology is similar to other server side technologies such as JSP, PHP, ASP, etc.

The Barracuda Web Server SDK provides a number of host tools that compile and link CSP files. The tools function similar to a compiler or cross compiler and convert the CSP files to either C or C++ code and to data files. A special linker combines all the data files into one file which is then embedded in your application. The produced C/C++ code is compiled using your standard C/C++ (cross) compiler and the code is then linked with your application.

1
2
3
4
5
6
7
8
9
<%! int count; %>

<%!! count = 1; %>

<html>
<body>
<p>You are visitor <%="%d" count++%>.</p>
</body>
</html>

About Real Time Logic

Real Time Logic is a world class IoT security and web-enablement specialist. Their solutions and Ecosystem Partners drive modern real-time embedded applications to ensure the smooth deployment and safe operation of next generation products. More details…

Find out more…

For more information on developing server based applications with the Barracuda Application Server and C/C++ Server Pages please complete the form below.

Full Name (required):

Company Name (required):

Your Email (required)