2 * @(#)NodeInterface.java
3 * Time-stamp: "2007-10-13 04:56:02 spoof"
6 import java
.net
.DatagramPacket
;
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
);