info.jedi.net
Interface Packet

All Known Implementing Classes:
InputPacket, OutputPacket

public interface Packet

This interface captures the common elements of InputPackets and OutputPackets. They both go to (or come from) an internet address and port, and sometimes have an id number and a time stamp. Note that id() and time() may be undefined for an InputPacket that has not gone through some Handler that reads its id and timestamp.

See Also:
InputPacket, OutputPacket

Method Summary
 java.net.InetAddress address()
          The internet address this packet came from or is going to
 int id()
          The id of this packet
 int port()
          The port this packet came from or is going to
 long time()
          The sending timestamp of this packet
 int timeout()
          The timeout in milliseconds of this packet
 

Method Detail

address

public java.net.InetAddress address()
The internet address this packet came from or is going to

port

public int port()
The port this packet came from or is going to

id

public int id()
The id of this packet

time

public long time()
The sending timestamp of this packet

timeout

public int timeout()
The timeout in milliseconds of this packet