Package com.biglybt.core.networkmanager
Class ConnectionEndpoint.ConnectListenerEx
java.lang.Object
com.biglybt.core.networkmanager.ConnectionEndpoint.ConnectListenerEx
- All Implemented Interfaces:
Transport.ConnectListener
- Enclosing class:
ConnectionEndpoint
private static class ConnectionEndpoint.ConnectListenerEx
extends Object
implements Transport.ConnectListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final Transport.ConnectListener
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
connectAttemptStarted
(Transport transport, int default_connect_timeout) The connection establishment process has started, i.e.void
connectFailure
(Transport transport, Throwable failure_msg) The connection attempt failed.void
connectSuccess
(Transport transport, ByteBuffer remaining_initial_data) The connection attempt succeeded.getConnectionProperty
(String property_name) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.networkmanager.Transport.ConnectListener
connectAttemptStarted, connectFailure
-
Field Details
-
listener
-
ok
private boolean ok -
failed
private boolean failed
-
-
Constructor Details
-
ConnectListenerEx
ConnectListenerEx(Transport.ConnectListener _listener)
-
-
Method Details
-
connectAttemptStarted
Description copied from interface:Transport.ConnectListener
The connection establishment process has started, i.e. the connection is actively being attempted.- Specified by:
connectAttemptStarted
in interfaceTransport.ConnectListener
- Returns:
- modified timeout
-
connectSuccess
Description copied from interface:Transport.ConnectListener
The connection attempt succeeded. The connection is now established.- Specified by:
connectSuccess
in interfaceTransport.ConnectListener
-
connectFailure
Description copied from interface:Transport.ConnectListener
The connection attempt failed.- Specified by:
connectFailure
in interfaceTransport.ConnectListener
- Parameters:
failure_msg
- failure reason
-
getConnectionProperty
- Specified by:
getConnectionProperty
in interfaceTransport.ConnectListener
-