Asynchronous socket with Windows NT/2000

Hi, guys !

I have a question about the TCP/IP stack in WinNT/2000
(I know it’s not a “classic kernel question”, but a good knowledge of NT
internals is needed for it… )

Well, to the point:

I’d like to open an asynchronous TCP socket, i.e.: I’d like a connect()
function to send the SYN packet, and return immediately (without waiting for
an
answer from the destination).

Is this possible? How? Is it different on NT and 2000?

I want to do this in order to know through which network card a specific
connection will be established, so my plan is to do a connect(), and then
use getsockname(). The problem with this method is that it fails when the
socket is not connected…
so I thought that if I’d open an asynchronous one, the socket will be
considered as “connected”…

thanks in advance,

  • Barak

Barak Mandelovich xxxxx@mercury.co.il
Mercury Interactive ltd.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>I want to do this in order to know through which network card a specific

connection will be established, so my plan is to do a connect(), and then
use getsockname().

I thought you do this by setting the source connection address to a value
of one of the local IP addresses, instead of ANY.

  • Jan

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com