This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need urgent  RSS feed

 
Ajit Amitav Das
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
guys,i can't find any reason why java networking classes don't have ping method,and wht may be the reason behind it,plz ans this it's urgent.

If anyone wil be kind enough to answer this then i wil be thankful to him.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java does not have have an API for ICMP protocol access, which is needed for ping, traceroute and the like. Your options are either to integrate native functionality via JNI, or to interface with an existing ping as an external process via Runtime.exec.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!