LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Network programming question....

[ILUG] Network programming question....

Justin MacCarthy macarthy at iol.ie
Tue Feb 5 14:15:47 GMT 2002


Nick the code from nmap . very fast scanning tool 

http://www.insecure.org/nmap/nmap_doc.html

Justin 

> -----Original Message-----
> From: ilug-admin at linux.ie [mailto:ilug-admin at linux.ie]On Behalf Of
> Stephen Shirley
> Sent: Tuesday, February 05, 2002 2:06 PM
> To: ilug at linux.ie
> Subject: [ILUG] Network programming question....
> 
> 
> Mornin' all,
> 	Here's the problem. I had a linux box (A), and a sun box (B). They
> 	are both connected to a 100mb switched private lan. They are the
> 	only boxen on this network. I have complete control over A, but none
> 	over B. I need to be able to write a program to run on A that will
> 	detect as fast as possible if B is up or down. Calling ping or any
> 	other external programs is out of the question - too much overhead.
> 	This might have to be done many times a second. My initial idea was
> 	to open a tcp connection to a port i know is closed on B, thereby
> 	getting a REJECT, and confirming it's up. This solution takes on
> 	average 509 usecs to say yay, and times out after 500 msecs
> 	(configurable) to say nay. 
> 
> 	Now it's been suggested that I try some facny tcp half-connect
> 	modes, or maybe even arp. However, networks aren't my speciality. I
> 	was wondering if anyone had any suggestions/comments.
> 
> TIA,
> Steve
> P.s. I know that this is not strictly a linux question, but this is a
> linux _users_ list, and i'm doing this using linux.
> -- 
> "My mom had Windows at work and it hurt her eyes real bad"
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription 
> information.
> List maintainer: listmaster at linux.ie
> 
> 
> 




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell