W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

how many events can be simultanously registred for one SOCKET?

From: Steinar Bang <sb@metis.no>
Date: 13 Aug 1999 11:49:26 +0200
To: www-lib@w3.org
Message-ID: <whk8r02eop.fsf@viffer.oslo.metis.no>
How many events can be simultanously registred for a single SOCKET?

I'm working on using w3c-libww together with the Qt GUI toolkit, and
right now I'm trying to create a map from QSocketNotifiers
to HTEvent objects.

I have written a small program for testing, and from my experiments
I've found that when libwww tries opening a socket, it registers an
event of type HTEvent_CONNECT.  From this event it appearently expects 
a read event telling libwww that it's now OK to write down the socket.

Then it registers an event of type HTEvent_READ with the same socket. 

My questions are:
 1. will it be sufficient for me to create two maps from socket
    identifiers to HTEvent* (one for read and one for write), or may
    there be more than one read event registered on a socket at a
    particular point in time?
 2. will a registered HTEvent_CONNECT always result in the expectation 
    of a write event?
 3. will there ever be a HTEvent_READ registered?  And what does it
 4. will the HTEvent_CONNECT event ever be unregistered?

Received on Friday, 13 August 1999 05:49:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:51 UTC