How connect to server?
[email protected] Fri, 28 Jan 2011 17:03:00 +0000 (GMT)
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi to all
I have a server apache mod fastcgi, I want write a c code to connect to server, how can I do it?
I make this code that act like a server.
thanks in advance
#include "fcgi/fastcgi.h"
#include "fcgi/fcgiapp.h"
#include <stdlib.h>
int main ()
{
FCGX_Request request;
printf( "start..");
FCGX_Init();
int socket=FCGX_OpenSocket(":80",25);
int socket=0;
if(FCGX_InitRequest(&request,socket,0)==0)
{
printf( "OK");
FCGX_Accept_r(&request);
FCGX_PutS("Hi", request.out);
FCGX_Finish_r(&request);
}
else
{
printf( "no");
}
return 0;
}
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers