NodeInterface + ignore
[packetlaptime.git] / Node.java
blobf2fdb3f496dba81c75adbf1b8d41ab1665225cd6
1 /*
2 * @(#)Node.java
3 * Time-stamp: "2007-10-09 11:54:52 anton"
4 */
6 import java.io.IOException;
8 /**
9 * Node
11 * @author "Anton Johansson" <anton.johansson@gmail.com>
13 public class Node {
14 private static int localPort;
15 private static int nextHost;
16 private static int nextPort;
18 public Node() {
19 System.out.println(localPort + " " + nextPort + " " + nextPort);
22 public static void main(String[] args) throws IOException {
23 // args should contain local-port next-host next-port
24 try {
25 localPort = Integer.parseInt(args[0]);
26 nextHost = Integer.parseInt(args[1]);
27 nextPort = Integer.parseInt(args[2]);
29 catch (Exception e) {
30 System.out.println("You have to provide args: local-port next-host next-port");
32 Node n = new Node();