Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ping in java

 
mrutyunjay raodora
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know how to ping a node in network which is not a server.i got the functionality to ping servers.please if anyone had a hand on this please make me aware of this.
 
Mallick Choppa
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Java doesn't support raw sockets as the ping functionality is to be done through raw sockects.
U can either do it through JNI or use Runtime of java to execute the ping process(defaultly available in any OS) and from the stream u parse for whether it is successful or not
hope this helps
mallick
mallick@orillion.stph.net
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!