Package com.biglybt.core.networkmanager
Interface Transport.ConnectListener
- All Known Implementing Classes:
ConnectionEndpoint.ConnectListenerEx
- Enclosing interface:
- Transport
public static interface Transport.ConnectListener
Listener for notification of connection establishment.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
connectAttemptStarted
(int default_connect_timeout) Deprecated.int
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.default void
connectFailure
(Throwable failure_msg) Deprecated.void
connectSuccess
(Transport transport, ByteBuffer remaining_initial_data) The connection attempt succeeded.getConnectionProperty
(String property_name)
-
Method Details
-
connectAttemptStarted
default int connectAttemptStarted(int default_connect_timeout) Deprecated.- Parameters:
default_connect_timeout
-- Returns:
-
connectFailure
Deprecated.- Parameters:
failure_msg
-
-
connectAttemptStarted
The connection establishment process has started, i.e. the connection is actively being attempted.- Returns:
- modified timeout
-
connectSuccess
The connection attempt succeeded. The connection is now established. -
connectFailure
The connection attempt failed.- Parameters:
failure_msg
- failure reason
-
getConnectionProperty
-