Matt

Matt

  • NA
  • 1
  • 0

Socket Connection

Oct 4 2005 6:58 PM

I'm trying to write a program that will scan a subnet on a specific port for possible connections.  I'm basically trying to write more of a "network discovery" kind of program.  My question has to do with the socket class. I've setup the socket to go to an IP on a specific port, but I've noticed when the program reaches an IP that corresponds to no machine, it takes awhile to timeout.  When I sniff my network traffic I notice its just sending out ARP requests to find the machine with the IP... thats fine but is there a way to shorten its ARP search?  I understand I can use more threads to expedite the process but was hoping there was some property I could set on each socket to adjust what I'm looking for.