Re: WWWLib 3.1 & blocking I/O

>>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 UTC