|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.kenmccrary.jtella.Connection
Represents a connection to an application communicating with the GNUTella protocol
Field Summary | |
protected com.kenmccrary.jtella.Connection.AsyncSender |
asyncSender
|
static int |
CONNECTION_INCOMING
Connection created by another servant |
static int |
CONNECTION_OUTGOING
Connection created be JTella servant |
protected ConnectionData |
connectionData
|
protected long |
createTime
|
protected int |
droppedCount
|
protected java.lang.String |
host
|
protected int |
inputCount
|
protected java.io.DataInputStream |
inputStream
|
protected int |
outputCount
|
protected java.io.DataOutputStream |
outputStream
|
protected int |
port
|
protected com.kenmccrary.jtella.Router |
router
|
protected long |
sendTime
|
protected boolean |
shutdownFlag
|
protected java.net.Socket |
socket
|
protected int |
status
|
static int |
STATUS_CONNECTING
Connection is attempting to connected to GNUTella |
static int |
STATUS_FAILED
Connection is not operating normally |
static int |
STATUS_OK
Connection is operating normally |
static int |
STATUS_STOPPED
Connection has been stopped |
protected int |
type
|
Method Summary | |
java.lang.String |
getConnectedServant()
Get the connected host |
int |
getMessageDropCount()
Get the number of messages dropped on this connection |
int |
getMessageInput()
Get the message input count |
int |
getMessageOutput()
Get the message output count |
long |
getSendTime()
Returns the timestamp of the last send |
int |
getStatus()
Get the current status of the connection |
int |
getType()
Get the type of connection, incoming or outgoing |
int |
getUpTime()
Get the lenght of time the connection has lived |
void |
shutdown()
Stops the connection and cleans up |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
Field Detail |
public static final int STATUS_CONNECTING
public static final int STATUS_OK
public static final int STATUS_FAILED
public static final int STATUS_STOPPED
public static final int CONNECTION_INCOMING
public static final int CONNECTION_OUTGOING
protected boolean shutdownFlag
protected java.net.Socket socket
protected java.io.DataInputStream inputStream
protected java.io.DataOutputStream outputStream
protected com.kenmccrary.jtella.Connection.AsyncSender asyncSender
protected com.kenmccrary.jtella.Router router
protected ConnectionData connectionData
protected java.lang.String host
protected int port
protected int status
protected int type
protected int inputCount
protected int outputCount
protected int droppedCount
protected long createTime
protected long sendTime
Method Detail |
public void shutdown()
public java.lang.String getConnectedServant()
public int getStatus()
public int getType()
public int getMessageOutput()
public int getMessageInput()
public int getMessageDropCount()
public int getUpTime()
public long getSendTime()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |