gtpc3m2dConcepts and Structures

TPF Internet Server Support

TPF Internet server support is based on the Portable Operating System Interface for Computer Environments (POSIX) standards wherever possible.

A person who is surfing the Internet can obtain information from a TPF system as shown in Figure 62. Information is in the form of:

The TPF system provides the following functions:

The TPF system supports the following types of transport protocols:

Figure 62. Overview of TPF Internet Server Support. An FTP or TFTP client creates and maintains Web page content using FTP or TFTP write requests. An HTTP client is surfing the Internet through HTTP read requests.


Storing Web Page Content in the TPF System

Web page content is created on another system such as UNIX or a personal computer (PC) and transferred to the TPF system using the FTP or TFTP server as shown by Figure 63. Web page contents are stored as stream files in the file system.

Figure 63. Storing Web Page Content in the TPF System. The FTP or TFTP server stores the 1.html file containing Web page content in the file system as a result of an FTP or TFTP write request.


Retrieving Web Pages from the TPF System

When a request is received over a TCP/IP network, the Internet daemon starts an HTTP server to retrieve the Web page from a file in the file system and to return the Web page content over the Internet as shown in Figure 64.

Figure 64. Retrieving Web Pages from the TPF System. An HTTP client requests a Web page from the 1.html file in the file system using an HTTP read request. The Internet daemon starts the HTTP server to retrieve the Web page and send it over the Internet.


Starting a TPF Application from the Internet

An executable script, a type of executable file in the file system, can be used to start a TPF application from the Internet. The TPF application can direct its output to the Internet rather than to an agent.

Figure 65 shows that the executable script is called 1.exe in the file system and the TPF application is a loader E-type program called QZZ2. When the client requests information, the Internet daemon starts the HTTP server to start program QZZ2 using an executable script, the 1.exe file, to retrieve the requested data and send it over the Internet.

Figure 65. Starting a TPF Application from the Internet. An HTTP client requests TPF data using an HTTP POST request to start the TPF program named in the 1.exe executable script.