sudhir.marni wrote:
to find out whether the service of particular port is available or not
Well, that depends on what you mean. Let me make a couple of assumptions: - the port you're talking about is a port on a TCP connection - the service is something like a FTP-server or similar If you cannot sucessfully connect to the server socket you know that the port is unreachable and it's reasonable to assume the service to be down. If you're able to connect to the port of the server socket, then you have to use a suitable protocol for the service, such as HTTP, that will tell you whether the service is up'n'running or not. My point is that you need to know what protocol to use to be able to determine if the service is available or not. -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above