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

Re: WWWLib 3.1 & blocking I/O

From: Christian Promitzer <cprom@iicm.tu-graz.ac.at>
Date: Tue, 17 Oct 1995 10:53:51 +0100
Message-Id: <199510170953.AA13643@iicm.tu-graz.ac.at>
To: Multiple recipients of list <www-lib@www10.w3.org>, "Keith Kiyohara" <KKiyohara@symantec.com>, Multiple recipients of list <www-lib@www10.w3.org>, frystyk@w3.org (Henrik Frystyk Nielsen), Multiple recipients of list <www-lib@www10.w3.org>, frystyk@w3.org (Henrik Frystyk Nielsen), www-lib@www10.w3.org, www-lib@www10.w3.org, cwensel@rtis.com (Chris Wensel), www-talk@w3.org, www-lib@w3.org, Henrik Frystyk Nielsen <frystyk@w3.org>, www-talk@w3.org, www-lib@w3.org, Henrik Frystyk Nielsen <frystyk@w3.org>, www-lib@w3.org, mitch@tam.net (Mitch DeShields), mitch@tam.net, msfriedm@us.oracle.com (Mark S. Friedman), www-lib@w3.org, msfriedm@us.oracle.com, Henrik Frystyk Nielsen <frystyk@w3.org>, mitch@tam.net, www-lib@w3.org, www-lib@w3.org, mitch@tam.net (Mitch DeShields), mitch@tam.net (Mitch DeShields), Henrik Frystyk Nielsen <frystyk@w3.org>, www-lib@w3.org, "'www-lib@w3.org'" <www-lib@w3.org>, Teo Kok Hoon <kokhoon@iti.gov.sg>, www-lib@w3.org, Henrik Frystyk Nielsen <frystyk@w3.org>, Maciej Puzio <puzio@laser.mimuw.edu.pl>, Henrik Frystyk Nielsen <frystyk@w3.org>, "'WWW Library Mailing List'" <www-lib@w3.org>
>>From www-lib-request@w3.org Fri Sep 22 20:20:19 1995
>Resent-Date: Fri, 22 Sep 1995 14:12:00 -0400
>Resent-Message-Id: <199509221812.OAA27726@www19.w3.org>
>X-Sender: mitch@mail.tam.net
>To: www-lib@w3.org
>From: mitch@tam.net (Mitch DeShields)
>Subject: Re: WWWLib 3.1 & blocking I/O
>Date: Fri, 22 Sep 1995 11:12:09 -0700
>Content-Length: 1547
>Resent-From: www-lib@w3.org
>X-Mailing-List: <www-lib@w3.org> archive/latest/225
>X-Loop: www-lib@w3.org
>Sender: www-lib-request@w3.org
>Resent-Sender: www-lib-request@w3.org
>Precedence: list
>
>At 05:03 pm 9/20/95 -0700, you wrote:
>>Mitch DeShields writes:
>> > 
>> > I'm using the WWWLib 3.1 in a Windows environment.  I'd like to use the
>> > asynchronous winsock.  ...
>> > 
>> > I find that the call to connect() in HTDoConnect() returns WSAWOULDBLOCK.
>> > 
>> > Does my message handler need to do anything (like call LoadHTTP() again to
>> > get back into the state machine)?
>>
>>Assuming that WWWLib 3.1 work the same way as 3.0, you just need to
>>re-call whatever lib call you originally made (i.e. LoadHTTP) that
>>returned WSAWOULDBLOCK. 
>
>Yep, this seems to be mostly working.  My message handler gets called with
>FD_CONNECT, then one or more FD_READ notifications.  In each case, I call
>HTTPLoad().  This part is working, I can see the received bytes in the read
>buffer.
>
>However, I never get an FD_CLOSE notification.  I would think that (on a
>GET) the HTTP server would close the socket after sending the information to
>the client.  The FD_CLOSE flag is included in the lEvent in
>WSAAsyncSelect(), and I do get other notifications.  I have even tried to
>close the socket (closesocket()) from a button press event.
>
>Why no FD_CLOSE notification????
>
>Thanks in advance.
>
>  ____  ____  ____  ____  ____  ____  ____  ____  ____  ____
> /  __\/  __\/  __\/  __\/  __\/  __\/  __\/  __\/  __\/  __|
>|  /__/  /__/  /__/  /__/  /__/  /__/  /__/  /__/  /__/  /__|
>|_/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \_|
>
>Mitch DeShields     IQ Interface      207 Second St. Suite B
>mitch@tam.net      (415) 331-0304       Sausalito CA 94965
>
>
>
----------------------------------------------------------------------------
Christian Promitzer                                 cprom@iicm.tu-graz.ac.at
Institute for Information Processing and Computer Supported New Media (IICM)
                   Graz University of Technology, Austria
Voice: ++43/316/873-5644                                Fax: ++43/316/824394
----------------------------------------------------------------------------
     ______    __   __                                ______     ______ 
     \ \ \ \  |_ | | _|    _ _ __   ___ _ __         /  ____)   / / / / 
      \ \ \ \  | `-' | \  / | '_ \ / _ \ '__) ,---.  | | ___   / / / / 
      / / / /  | ,-. |\ \/ /| |_) |  __/ |    `---'  | |__/ |  \ \ \ \ 
     /_/_/_/  |__| |__|\  / | .__/ \___|_|           \______|   \_\_\_\
                       /_/  |_|                            

For information on Hyper-G look at http://hyperg.iicm.tu-graz.ac.at/Chyperg
----------------------------------------------------------------------------
Received on Tuesday, 17 October 1995 05:55:00 GMT

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