equip.net
Class UnicastProbe

java.lang.Object
  extended byequip.net.UnicastProbe

public class UnicastProbe
extends java.lang.Object

a simple unicast network probe to help with mobile networking tests. regularly sends to a unicast address, and also listens.


Field Summary
static int DEFAULT_PORT
          default port
static int INTERVAL_MS
          default interval, ms
(package private)  java.net.DatagramSocket socket
          multicast socket to send and receive on
 
Constructor Summary
UnicastProbe(java.net.InetAddress peer, int localport, int peerport)
          cons on given multicast group - runs immediately
 
Method Summary
static void main(java.lang.String[] args)
          test main: usage java equip.net.UnicastProbe <peerip> <localport> <peerport>
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

java.net.DatagramSocket socket
multicast socket to send and receive on


DEFAULT_PORT

public static final int DEFAULT_PORT
default port

See Also:
Constant Field Values

INTERVAL_MS

public static final int INTERVAL_MS
default interval, ms

See Also:
Constant Field Values
Constructor Detail

UnicastProbe

public UnicastProbe(java.net.InetAddress peer,
                    int localport,
                    int peerport)
             throws java.io.IOException,
                    java.lang.SecurityException
cons on given multicast group - runs immediately

Method Detail

main

public static void main(java.lang.String[] args)
test main: usage java equip.net.UnicastProbe <peerip> <localport> <peerport>