Re: Separating Application and Server

Sam Vilain <sam-s9IUA/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Nahemoth wrote:
> I'm afraid none of the examples supplied with fastcgi source code
> listen on an external socket. They use the stdin and stdout directly
> without checking if the are associated to an external socket. So when
> you call them from the console they exit dumping their contents to the
> console.

First, listen on the socket;

    fd = FCGX_OpenSocket(":1234", 5);

Then, pass that fd to the request initialiser

    FCGX_InitRequest(&request, fd, flags);

-- 
Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.