Small changes, nearing completion
[packetlaptime.git] / NodeInterface.java
blob8b6a1f07040822606b42a066fde480442eee9e0c
1 /*
2 * @(#)NodeInterface.java
3 * Time-stamp: "2007-10-30 20:39:29 anton"
4 */
6 import java.net.DatagramPacket;
8 /**
9 * NodeInterface – an interface for a node in a packet ring.
11 * @author "Anton Johansson" <anton.johansson@gmail.com>
12 * @author "Victor Zamanian" <victor.zamanian@gmail.com>
14 public interface NodeInterface {
15 public abstract boolean sendPacket(DatagramPacket sendPacket);
16 public abstract boolean receivePacket(DatagramPacket receivePacket);
17 public abstract DatagramPacket constructPacket(int messageType, String message);
18 public abstract boolean writeToLog(String id);
19 public abstract boolean closeLogFile();