com.act365.net.ping
Class PingSender

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.act365.net.ping.PingSender
All Implemented Interfaces:
java.lang.Runnable

public class PingSender
extends java.lang.Thread

PingSender objects transmit Ping packets.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PingSender(java.net.DatagramSocket socket, java.net.InetAddress hostaddr, java.net.InetAddress localaddr, short identifier, Ping ping, int count, int nbytes, short ttl)
          Sole constructor
 
Method Summary
 void run()
          Starts the transmission process.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PingSender

public PingSender(java.net.DatagramSocket socket,
                  java.net.InetAddress hostaddr,
                  java.net.InetAddress localaddr,
                  short identifier,
                  Ping ping,
                  int count,
                  int nbytes,
                  short ttl)
Sole constructor
Parameters:
socket - socket to be used to transmit
hostaddr - remote address to be pinged
localaddr - local address to appear in IP header (RawICMP only)
identifier - identifier to appear in ICMP message
ping - object that created the PingSender object
count - number of packets to be transmitted
nbytes - size of packets to be transmitted
ttl - time-to-live of packets (RawICMP only)
Method Detail

run

public void run()
Starts the transmission process.
Overrides:
run in class java.lang.Thread