|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.clientserver.ClientInfo
A server side wrapper that identifies a connected client.
Field Summary | |
static long |
TIMEOUT
A time out value after which a client is considered to be lost. |
Constructor Summary | |
ClientInfo(java.net.InetAddress addr,
int port)
Create a new ClientInfo. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getAddress()
Returns the client's address. |
int |
getID()
Returns the client's ID. |
int |
getPort()
Returns the client's port. |
boolean |
getZipMode()
Returns if the client uses zip mode or not. |
int |
hashCode()
|
boolean |
isLoggedOut()
Indicates that the client has been logged out either by its own request or by the server. |
boolean |
isLost()
Is the client lost? |
void |
logout()
Marks the client as logged out. |
void |
setZipMode(boolean mode)
Sets if the client uses zip mode or not. |
java.lang.String |
toString()
|
void |
touch()
"Touches" the client, i.e. make sure that it's not getting "lost". |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long TIMEOUT
Constructor Detail |
public ClientInfo(java.net.InetAddress addr, int port)
addr
- the client's addressport
- the client's portMethod Detail |
public void setZipMode(boolean mode)
mode
- does it?public boolean getZipMode()
public int getID()
public void touch()
public boolean isLost()
public java.net.InetAddress getAddress()
public int getPort()
public boolean isLoggedOut()
public void logout()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |