WebServer

The WebServer demonstration sample is a collection of files in the following five folders.

Directory

Description

Httpserv

HTTP Server files. These files implement an HTTP/1.0 server that complies with RFC 1945.

Htmlpage

HTML Page files. The functions in these files are the interface used to build HTML pages in memory (finding URIs in the data structures, handling common errors, etc.).

Html

HTML itself, not including forms. The functions in these files allow you to easily format real time data in HTML for display by a web server. These files create all the HTML in memory and does not create any disk file. If you want to save the HTML to disk, your application must open and write file.

Htmlform

HTML form file. This file is analogous to those in the Html folder, but the functions are for creating forms and decoding the returned form data.

Webmem

A sample web server that constructs HTML pages in memory.

The WebServer sample registers a shutdown handler with RTSS so that it can continue to run after a Windows Shutdown event. Once a shutdown has occurred, the web server switches to use RTSS local memory pre allocated to avoid SRI memory allocation from Windows that will certainly lead to system hanging.

RTSS Usage

RTSSrun WebServer.rtss

On any computer with Internet connection through Windows protocol stack and NIC, you can use an Internet browser, e.g., Internet Explorer on Microsoft Windows, to browse the WebServer by setting Address: http://IP_address. Note that IP_address is the WebServer's IP address.

To demonstrate that RT-TCP/IP networking is able to survive over the "Microsoft STOP Message", you need to generate a system crash manually on the computer running the WebServer program. To do this, enter the following command line in a command window:

Net start GenCrash

 

See Also

IntervalZero.com | Support | Give Feedback