W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

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

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Mon, 21 Dec 1998 09:40:31 -0500
To: www-lib@w3.org
Message-ID: <367E5DDF.FD929949@w3.org>
To: EALTER@mail.wshs.fcps.k12.va.us

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.


> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:48 UTC