Re: WWWLib 3.1 & blocking I/O

>>From www-lib-request@w3.org Thu Sep 21 15:37:37 1995
>Resent-Date: Thu, 21 Sep 1995 09:36:32 -0400
>Resent-Message-Id: <199509211336.JAA09903@www19.w3.org>
>To: msfriedm@us.oracle.com
>Cc: mitch@tam.net, www-lib@w3.org
>Reply-To: Henrik Frystyk Nielsen <frystyk@w3.org>
>Subject: Re: WWWLib 3.1 & blocking I/O 
>Date: Thu, 21 Sep 1995 09:32:04 -0400
>From: Henrik Frystyk Nielsen <frystyk@w3.org>
>Content-Length: 1242
>Resent-From: www-lib@w3.org
>X-Mailing-List: <www-lib@w3.org> archive/latest/224
>X-Loop: www-lib@w3.org
>Sender: www-lib-request@w3.org
>Resent-Sender: www-lib-request@w3.org
>Precedence: list
>
>> 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 (line 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. 
>
>Version 3.1 does work the same way - it's basically based on call back 
>functions. What might be a bit confusing is that 3.1 is a mix between the 
>original version of call back functions and the one provided by Charlie Brooks 
>for extending it to work on NT. I have now cleaned this up and it will get out 
>in the next version so it hopefully is a lot easier to find out.
> 
>> The way the non-blocking IO mechanism works is for the load functions
>> to return either when they complete their operation, when they would
>> block waiting for input or when they get an error.
>
>Yep :-)
>
>
>-- 
>
>Henrik Frystyk Nielsen, <frystyk@w3.org>
>World-Wide Web Consortium, MIT/LCS NE43-356
>545 Technology Square, Cambridge MA 02139, USA
>
>
>
>
>
>
----------------------------------------------------------------------------
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:58:43 UTC