|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--info.jedi.net.InputPacket
Associates a packet that has been received by JEDI with a DataInputStream for reading the contents of the packet.
PacketHandler
,
MailDaemon
,
Packet
Constructor Summary | |
InputPacket(java.net.DatagramPacket packet)
Initializes data members and creates a DataInputStream to read the contents of this packet |
Method Summary | |
java.net.InetAddress |
address()
The internet address this packet came from |
int |
id()
The id of this packet |
int |
port()
The port this packet came from |
void |
setID(int id)
sets the id of this packet. |
void |
setTime(long time)
sets the timestamp. |
void |
setTimeout(int newTimeout)
sets the timeout. |
java.io.DataInputStream |
stream()
The stream for reading the contents of this packet |
long |
time()
The sending timestamp of this packet |
int |
timeout()
The timeout this packet was sent with |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public InputPacket(java.net.DatagramPacket packet)
Method Detail |
public java.net.InetAddress address()
public int port()
public int id()
public long time()
public int timeout()
public void setID(int id)
public void setTime(long time)
public void setTimeout(int newTimeout)
public java.io.DataInputStream stream()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |