Package com.biglybt.plugin.net.test
Class NetTestPlugin.Tester.Connection
java.lang.Object
com.biglybt.plugin.net.test.NetTestPlugin.Tester.Connection
- All Implemented Interfaces:
GenericMessageConnection.GenericMessageConnectionPropertyHandler
,GenericMessageConnectionListener
- Enclosing class:
- NetTestPlugin.Tester
private class NetTestPlugin.Tester.Connection
extends Object
implements GenericMessageConnectionListener, GenericMessageConnection.GenericMessageConnectionPropertyHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private final GenericMessageConnection
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connected
(GenericMessageConnection connection) void
failed
(GenericMessageConnection connection, Throwable error) private void
getConnectionProperty
(String property_name) void
receive
(GenericMessageConnection connection, PooledByteBuffer message) private void
private void
timerTick
(long now)
-
Field Details
-
gmc
-
last_received_time
private long last_received_time -
last_sent_time
private long last_sent_time -
connected
private boolean connected -
failed
private boolean failed
-
-
Constructor Details
-
Connection
- Throws:
Exception
-
Connection
-
-
Method Details
-
connected
- Specified by:
connected
in interfaceGenericMessageConnectionListener
-
timerTick
private void timerTick(long now) -
send
-
receive
public void receive(GenericMessageConnection connection, PooledByteBuffer message) throws MessageException - Specified by:
receive
in interfaceGenericMessageConnectionListener
- Throws:
MessageException
-
failed
- Specified by:
failed
in interfaceGenericMessageConnectionListener
- Throws:
MessageException
-
failed
-
getConnectionProperty
- Specified by:
getConnectionProperty
in interfaceGenericMessageConnection.GenericMessageConnectionPropertyHandler
-