RE: sockets

Hi!

I hope I understood you correctly:
You want to know if a remote machine with
a specific IP address is on, and you can connect to it.

If this is the question - you can simply ping it.

If what you actually want is to know if it can
be connected via TCP (e.g.: telnet), I believe there’s
no other way but trying to connect.

Otherwise, to my knowledge, there’s no way to know.

You can, however, bypass the TCP/IP stack of the computer
by installing a MAC driver, build a TCP packet (SYN) by yourself,
send it and listen to the network until an ACK arrives.

This is similar to what connect() does, but in this way
YOU are the one who chooses the timeout value, and can
do things much faster.

Note, however, that this solution is quite complicated,
and you’ll need to write a kernel mode driver…

  • Barak

PS: If anybody knows of a better solution - please email me :wink:


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

-----Original Message-----
From: Girish Kulkarni [mailto:xxxxx@lightwave.com]
Sent: Thursday, July 27, 2000 3:58 PM
To: NT Developers Interest List
Subject: [ntdev] sockets

hi !
i want to find out if there is a m/c with, say, an ip address 10.20.30.40
to which i can connect.
how can i try to do that ?

if i use the connect call, it takes around a minute to time out.
is there any other way i can do that ?

tia
-girish


You are currently subscribed to ntdev as: xxxxx@mercury.co.il
To unsubscribe send a blank email to $subst(‘Email.Unsub’)