Small changes, logging still not working.
[packetlaptime.git] / NodeInterface.java
blobe9bd7dab0c509e8ac1e024ed932c4bc9ec1fedc9
1 /*
2 * @(#)NodeInterface.java
3 * Time-stamp: "2007-10-13 04:56:02 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);