connection from 127.0.0.1
Kelly F. Hickel
kfh "at" mqsoftware.com
Fri, 04 Feb 2000 20:02:44 +0000
There is a way to handle this is a windows specific manner. What we do is
to use the AcceptEx and ReadFile calls to activate the overlapped IO
feature, then instead of doing an accept() we use WaitForMultipleObjects and
also wait on a semaphore which we use to signal a shutdown. It's a little
ugly to try to integrate into a single unix and windows source base, but if
the code is windows only, it's not too bad.
-Kelly
-----Original Message-----
From: James [Wez] Weatherall [mailto:jnw "at" uk.research.att.com]
Sent: Friday, February 04, 2000 1:48 PM
To: vnc-list "at" uk.research.att.com
Subject: Re: connection from 127.0.0.1
On Fri, 4 Feb 2000, Will Dean wrote:
> Can anyone expand on that a bit? Is it specific to one variant of
> Windows? I assume it's a way to get past the blocking 'accept' call upon
> which the client thread is waiting, but those should (they do here...)
> abort with WSAEINTR when the socket is closed. What have I missed?
>
> PhD? Pah - it's Friday night.
:) It's the blocking accept call, which will, as you suggest, fail with
WSAEINTR or some similar error (can't remember exactly), but, sadly, not
until another attempt is made to connect to the accepting socket. This
causes problems if you wish to re-open the accepting socket on the same
port in the future.
Cheers,
James "Wez" Weatherall
--
Laboratory for Communications Engineering, Cambridge - Tel : 766513
AT&T Labs Cambridge, UK - Tel : 343000
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------