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

Re: Accessing the sockets using libwww 5.0a

From: <jose.kahan@w3.org>
Date: Thu, 21 Nov 1996 19:36:27 +0100 (MET)
Message-Id: <199611211836.TAA06368@tuvalu.inrialpes.fr>
To: mostrowski@marlowe.iosys.de (Martin Ostrowski)
Cc: www-lib@w3.org
Hello Martin,

In our previous episode, Martin Ostrowski said:
> 
> is there a smart way to force an application, based on the libwww, =
> sending and receiving data over the sockets, (e.g. fire an event when a =
> specified message is readed from the socket...)
> 
> Thanx. -Martin
> 

Have you tried using the HTAlert feature of libwww? It allows you to
have a callback when one of several events happens. You can program
which events you want to watch. You can add your own callback functions.

Try looking at module HTProgress.c, functions HTProgress(), and HTAlert_add().
Look at the HTProfile.c module to have an idea on how to use the latter.

Then do a debug run with breakpoints on those functions to see how
it works.

Hope this helps,

-Jose
Received on Thursday, 21 November 1996 13:36:08 GMT

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