|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexample.Ping
public class Ping
The Ping class is a simple demo showing how you can send ICMP echo requests and receive echo replies using raw sockets. It has been updated to work with both IPv4 and IPv6.
Note, this is not a model of good programming. The point of the example is to show how the RawSocket API calls work. There is much kluginess surrounding the actual packet and protocol handling, all of which is outside of the scope of what RockSaw does.
Nested Class Summary | |
---|---|
static interface |
Ping.EchoReplyListener
|
static class |
Ping.Pinger
|
static class |
Ping.PingerIPv6
|
Constructor Summary | |
---|---|
Ping()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ping()
Method Detail |
---|
public static final void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |