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

Asynch vs Synch posting

From: Mark <mgrice@atreus-systems.com>
Date: Fri, 10 Nov 2000 16:15:54 +0000
Message-ID: <3A0C1F3A.EB18D940@atreus-systems.com>
To: www-lib@w3.org
I have what is undoubtedly a simple question, the answer
to which I cannot see right in front of my face.

I have a simple application, written in C, whose sole
purpose is to "poke" an http server via ssl with a simple
message, repeatedly, in a timed manner. I decided to
try out libwww. My app is basically the same as the
post (post.c) example app. The POST is done inside
a never ending loop (basic "heartbeat" kinda app). The
question - the first POST happens, is handled by the
server, and a reponse is sent back. In this case I don't
care about the response. Control is never returned to
my app, libwww gives me:

Looking up localhost
Looking up localhost
Contacting localhost
Writing 1Kbytes
Writing 1Kbytes
Reading...
Please give name of file to save in: (RETURN for [/tmp/blahblahblah])

and then app is terminated. I want to ignore these returns
and just have program control returned to my app and send out
the next POST....

Any help on what I am missing would be greatly
appreciated. Code snippet of the POST:

    while (1)
    {
	.....
       	status = HTPostAnchor(src, dst, request);

       	if (status == YES) HTEventList_loop(request);
    }

Mark

-- 
Mark Grice
Senior Software Developer, Atreus Systems Corporation
(613) 233-1741 x245  /  (613) 239-1738 (pager)
http://www.atreus-systems.com
Received on Friday, 10 November 2000 11:15:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT