Re: I don't have a clue on your Re: questoin on listen.c

EALTER@mail.wshs.fcps.k12.va.us wrote:
> 
> I think its cause i program C++ and not C but i have no clue how http://www.w3.org/Library/Examples/eventloop.c
> works, or how it gets the info and how it uses it

It actually has little to do with C++/C and may have more to do with the
programming model using an event loop. Essentially, when you have an
eventloop then everything is done via callbacks which are triggered as a
function of some event. In the case of the default libwww eventloop, the
events are caused by socket interactions, like a socket is ready for
reading, etc.

Henrik

> Can anyone help me
> 
> !>EALTER@mail.wshs.fcps.k12.va.us wrote:
> !>>
> !>> i am going to write cgi in C++ and i want it to issue commands and
> !>> send info to the server i am writing since it is local would i still
> !>> do what listen does?
> 
> !>It would be better to use a model like you find in the event loop sample
> 
> !>        http://www.w3.org/Library/Examples/eventloop.c
> 
> !>linked from
> 
> !>      http://www.w3.org/Library/Examples/
> 
> !>It reads from stdin (which is the normal input channel for CGI scripts)
> !>and then does something as a function of that input.
> 
> !>Henrik

Received on Monday, 21 December 1998 09:41:10 UTC