public class Ping
extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static interface |
Ping.EchoReplyListener |
static class |
Ping.Pinger |
static class |
Ping.PingerIPv6 |
Constructor and Description |
---|
Ping() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Copyright © 2004-2007 Daniel F. Savarese
Copyright © 2009 Savarese Software Research Corporation. All Rights Reserved.