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

Re: questoin on listen.c

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 17 Dec 1998 15:42:07 -0500
To: www-lib@w3.org
Message-ID: <36796C9F.BBC8FA14@w3.org>
To: EALTER@mail.wshs.fcps.k12.va.us


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 Thursday, 17 December 1998 15:42:10 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:26 EDT