edu.nps.moves.examples
Class EspduSender

java.lang.Object
  extended by edu.nps.moves.examples.EspduSender

public class EspduSender
extends java.lang.Object

Creates and sends ESPDUs in IEEE binary format.

Author:
DMcG

Nested Class Summary
static class EspduSender.NetworkMode
           
 
Field Summary
static java.lang.String DEFAULT_MULTICAST_GROUP
          default multicast group we send on
static int PORT
          Port we send on
 
Constructor Summary
EspduSender()
           
 
Method Summary
static void main(java.lang.String[] args)
          Possible system properties, passed in via -Dattr=val networkMode: unicast, broadcast, multicast destinationIp: where to send the packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MULTICAST_GROUP

public static final java.lang.String DEFAULT_MULTICAST_GROUP
default multicast group we send on

See Also:
Constant Field Values

PORT

public static final int PORT
Port we send on

See Also:
Constant Field Values
Constructor Detail

EspduSender

public EspduSender()
Method Detail

main

public static void main(java.lang.String[] args)
Possible system properties, passed in via -Dattr=val networkMode: unicast, broadcast, multicast destinationIp: where to send the packet. If in multicast mode, this can be mcast. To determine bcast destination IP, use an online bcast address caclulator, for example http://www.remotemonitoringsystems.ca/broadcast.php If in mcast mode, a join() will be done on the mcast address. port: port used for both source and destination.

Parameters:
args -