användarhand
[packetlaptime.git] / NodeInterface.java
blobd7a7f0ef91733ae7f2ef80477ea619d3ea0fe1bb
1 /*
2 * @(#)NodeInterface.java
3 * Time-stamp: "2007-10-18 01:50:57 spoof"
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();
19 public abstract boolean closeLogFile();