|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.bridge.Client
Field Summary | |
(package private) java.net.InetAddress |
clientAddress
|
(package private) int |
port
|
(package private) long |
timestamp
|
Constructor Summary | |
Client(java.net.InetAddress pClientAddress,
int pPort)
Constructor; takes as arguments the place to forward packets to, in the form of a unicast address, and a port on that machine to send packets to. |
|
Client(java.lang.String pSubscribeCommand)
Constructor; gets the whole subscribe command from the packet, which we parse out into the inet address and port of where we should send this. |
Method Summary | |
boolean |
equals(java.lang.Object pObject)
One client is equal to anothr if it has the same address and the same port. |
long |
getTimestamp()
Returns time this client was last heard from |
int |
hashCode()
Hashcode, used for fast access in various data structures. |
void |
setTimestamp()
set the timestamp to the current time. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.net.InetAddress clientAddress
int port
long timestamp
Constructor Detail |
public Client(java.lang.String pSubscribeCommand)
public Client(java.net.InetAddress pClientAddress, int pPort)
Method Detail |
public int hashCode()
public boolean equals(java.lang.Object pObject)
public void setTimestamp()
public long getTimestamp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |