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

AW: How is possible to supress messages like Contacting Writing 1 Kbyt es Read 1Kbytes etc

From: Bernhardt Juergen <Juergen.Bernhardt@erl9.siemens.de>
Date: Thu, 21 Dec 2000 16:48:36 +0100
Message-ID: <1F69DAAD3391D411BE5300805FBED48B179B1B@ERLM511A>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Hi Lauri,

after you define your callback functions for trace and print with 

	HTPrint_setCallback(printer);
	HTTrace_setCallback(tracer);

you can modify these functions to supress some messages:

PRIVATE int printer (const char * fmt, va_list pArgs)
{
    /* do something with the message */
    return (vfprintf(stdout, fmt, pArgs));
}

To supress all data, simply undefine the callback functions.

Cheers,
Juergen

> -----Ursprüngliche Nachricht-----
> Von: Lauri-Alo Adamson [mailto:Lauri.Adamson@andmevara.ee]
> Gesendet am: Donnerstag, 21. Dezember 2000 14:24
> An: 'www-lib@w3.org'
> Betreff: How is possible to supress messages like Contacting Writing
> 1Kbyt es Read 1Kbytes etc
> 
> Hello!
> 
> How is possible to supress in libwww application following messages ?
> 
> Contacting 10.0.1.114
> Writing 1Kbytes
> Reading...
> Writing 1Kbytes
> Read 1Kbytes
> Read 1Kbytes
> Done!
> 
> Lauri 
> 
Received on Thursday, 21 December 2000 10:50:28 GMT

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