Package org.mitre.hpec.clockSkew

This is both a command-line tool and a library.

See: Description

Package org.mitre.hpec.clockSkew Description

This is both a command-line tool and a library. The following command-line example uses UDP probes between NODE1 and NODE2 using ports 4001 and 4002

For example, At NODE1:

./skew.sh NODE1:4001 NODE2:4002

At NODE2:

./skew.sh NODE2:4002 NODE1:4001

Invoking the tool with "-h" as a command-line option will provide syntax help. Other command-line options are:
-bufSize n
to change the amount of data being sent. This is not generally needed.
-tcp -listen
to use TCP instead of UDP probes and to indicate that this is the listener
-tcp -send
to use TCP instead of UDP probes and to indicate that this is the sender
-waitSecs n
to set the amount of time to wait for connection completion to something other than the default 15 seconds.
It does not matter which node is started first. However, using TCP the node must also be directed as to whether it is the sender or listener with the -send and -listen options.

To invoke this under programmatic control you will need to create an instance of Skew at each node. Then you can set the options on each instance and invoke calibration by invoking its call() method