Re: Wrapping FastCGI - Function howto?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> gshingles wrote:
> > 
> > 
> > Where I come from envp is the pointer to the environment variables.
> > It if is that then it's a pointer to a null terminated array of null
> > terminated
> > strings
> > ie char **envp;
> > 
> > This would make sense for a CGI library, maybe it wants a pointer to the 
> > environment block, or maybe it wants to give you one from where the
> > query is coming from?
> > 
> 
> Gary,
> 
> Yes, it's the environment. It want's to populate that array with the
> environment
> as the FastCGI application may be running locally, under it's own session, or
> it could be running on a totally different server in another country. So, it
> passes the web servers environment to your application via the FCGX_Accept
> function.
> 
> I have yet to make this work, btw... getlost I get various memory errors. I have
> not been working on it solid, only touching it here and there between my real
> job. FastCGI or SCGI would be very nice to have for Euphoria. I am really
> surprised
> it has not been done already.
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

Maybe you need to allocate a large enough area for the environment and then
allocate a pointer for the environment?

Then again, isn't a pointer to the environment passed to the C main() statement?
No, I see that that's a windows extension for winmain().

That's all I got.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu