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 booleanprivate final Transport.ConnectListenerprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintconnectAttemptStarted(Transport transport, int default_connect_timeout) The connection establishment process has started, i.e.voidconnectFailure(Transport transport, Throwable failure_msg) The connection attempt failed.voidconnectSuccess(Transport transport, ByteBuffer remaining_initial_data) The connection attempt succeeded.getConnectionProperty(String property_name) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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.ConnectListenerThe connection establishment process has started, i.e. the connection is actively being attempted.- Specified by:
connectAttemptStartedin interfaceTransport.ConnectListener- Returns:
- modified timeout
-
connectSuccess
Description copied from interface:Transport.ConnectListenerThe connection attempt succeeded. The connection is now established.- Specified by:
connectSuccessin interfaceTransport.ConnectListener
-
connectFailure
Description copied from interface:Transport.ConnectListenerThe connection attempt failed.- Specified by:
connectFailurein interfaceTransport.ConnectListener- Parameters:
failure_msg- failure reason
-
getConnectionProperty
- Specified by:
getConnectionPropertyin interfaceTransport.ConnectListener
-