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

RE: Multiple POSTs

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 16 Dec 1998 13:35:14 -0500
Message-Id: <3.0.5.32.19981216133514.03207870@localhost>
To: olga@goliath.eai.com, www-lib@w3.org
At 12:11 12/16/98 -0600, olga wrote:
>> I have added a (quick) and small event loop sample app which you can get
>> at
>> 
>>       http://www.w3.org/Library/Examples/eventloop.c
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>it answers "URL not found"

is there now.

>I guess my major question was do I have to write the server as a separate
>executable from the rest of the application? Is there a way to avoid this
if I
>want to use mixed GET, POST, PUT request comming from the client in
unpredicted
>order at unpredicted times?

Yes, you can do this in the same libwww app. If the server triggers the
requests then the event loop sample is a good starting point - change the
stdin call with a server handler.

If they are triggered by something else then you need a mechanism for
catching these events. Web commander shows how this can be done, for
example, using windows events to catch mouse clicks etc.

Henrik


--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Wednesday, 16 December 1998 13:35:16 EST

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