EZ800000100STS Zilog, EZ800000100STS Datasheet - Page 46

no-image

EZ800000100STS

Manufacturer Part Number
EZ800000100STS
Description
SOFTWARE TCP/IP SOURCE CODE
Manufacturer
Zilog
Type
Protocol Stackr
Datasheets

Specifications of EZ800000100STS

Tool Type
Programming Software
Core Architecture
Z8
For Use With/related Products
eZ80 Acclaim! MCU
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
38
Zilog TCP/IP Stack API
eZ80
ZTP API Reference
®
CPU
website
A pointer to the website
site parameter can contain both static web pages and dynamic web pages.
Each element of the website array corresponds to a single static or
dynamic web page. Two sample web page declarations for a Static
webpage and the dynamic page are described below:
Webpage website[] = {
{HTTP_PAGE_STATIC, "/", "text/html",
&my_static_page_htm},
{HTTP_PAGE_DYNAMIC, "/dynamic.htm", "text/html"},
Static Web Pages
If the website consists of only Static webpages, the default HTTP library
contains all the necessary routines to process Get and Head requests
without providing any additional code. The HTTP server calls its internal
http_get
received for any Static webpage within the website array. The ZTP
internal
HTTP response. However, if the website contains dynamic web pages,
you must provide the code to complete the processing of the HTTP
request.
Dynamic Web Pages
When the ZTP HTTP server encounters a request for a Dynamic page, it
parses the incoming request into an
helper function to complete the request. For example, see the dynamic
page entry in the website definition provided above. When processing a
Get request on the
function calls the MY_DYNAMIC_CGI helper function to generate the
HTTP response for return to the client. A pointer to the
structure is passed to the helper function,
http_get
method-handling function when a Get or Head request is
dynamic.htm
method then returns the appropriate object in an
for which the server processes requests. The web-
page, the HTTP server’s
http_request
my_dynamic_cgi
structure, then calls a
http_request
RM004012-0707
http_get
.

Related parts for EZ800000100STS