| |

VerySource

 Forgot password?
 Register
Search
View: 922|Reply: 0

Web / Network Programming C ++ Development Kit FastCGI Library Application

[Copy link]

1

Threads

2

Posts

0.00

Credits

Newbie

Rank: 1

Credits
0.00

 China

Post time: 2020-3-27 12:34:10
| Show all posts |Read mode
The article calls C ++ MFC [align = left] [color = rgb (0, 0, 0)] [size = 4] API package [/ b] [/ size] [/ color] [/ align]
[align = left] [color = rgb (0, 0, 0)] Progress of the instantiation of the usage of the fcgi_stdio header file [/ b] [/ color] [/ align]
[align = left] [color = rgb (0, 0, 0)] [size = 2] Simplify the effective use of the existing CGICC package, using a library to internal functions into a FastCGI_Stduio script file written by FastCGI CC Or write FastCGI example [/ size] [/ color] [/ align]
[align = left] [color = rgb (0, 0, 0)] [size = 2]
[/ size] [/ color] [/ align]
[font = "Microsoft YaHei", "SF Pro Display", Rototo, Noto, Arial, "PingFang SC", sans-serif] [size = 2] [color = # 007000] In the developed component, there are only two examples The file or internal function rescued an identification suggestion for improving performance through complex process functions: [/ color] [/ size] [/ font]
[font = "Microsoft YaHei", "SF Pro Display", Rototo, Noto, Arial, "PingFang SC", sans-serif] [size = 2] [color = # 007000] Tip first point: [/ color] [ / size] [/ font] [font = "Microsoft YaHei", "SF Pro Display", Rototo, Noto, Arial, "PingFang SC", sans-serif] [color = # 007000] FCGI_ _stdio [/ b ] [align = left] The embedding of the package, in the conversion of the previous practical application of the CGI function library is a new FastCGI CC function library with practical standards newly written, your application is highly recommended. Instantiate with this library function or package [/ align] [/ color] [/ font]
[font = "Microsoft YaHei", "SF Pro Display", Rototo, Noto, Arial, "PingFang SC", sans-serif] [color = # b01100] all [align = left] [backcolor = rgb (255, 255, 255)] The binary program can use the parameters in the library function as the CGI function library and can run it. [/ backcolor] [/ align] [/ color] [/ font]
[font = "Microsoft YaHei", "SF Pro Display", Rototo, Noto, Arial, "PingFang SC", sans-serif] [color = # 007670] Tip the second point: [color = rgb (77, 77, 77 )] [backcolor = rgb (255, 255, 255)] F CGI [/ b] [/ backcolor] [/ color] The app class provides other class parameters and bits that are compatible with each other. A concise description of the parameters. [/ b] [/ color] [/ font]

[align = left] [color = rgb (0, 0, 0)]
[/ color] [/ align]


#include "fcgi_stdio.h"

#include <stdlib.h>
Int count;
Void initialize (void)
{
Count = 0;
}


void main (void)
{
Initialize ();

While (FCGI_Accept ()> = 0) {
Printf ("Content-type: text / html\r\n"
"\r\n"
"<Title> FastCGI Hello! (C, fcgi_stdio library) </ title>"
"<H1> FastCGI Hello! (C, fcgi_stdio library) </ h1>"
"Request number% d running on host <i>% s </ i>\n",
++ count, getenv ("SERVER_HOSTNAME"));
}

}
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list