Package com.biglybt.core.networkmanager
Interface NetworkConnection.ConnectionListener
- Enclosing interface:
- NetworkConnection
public static interface NetworkConnection.ConnectionListener
Listener for notification of connection events.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectFailure
(Throwable failure_msg) The connection attempt failed.int
connectStarted
(int default_connect_timeout) The connection establishment process has started, i.e.void
connectSuccess
(ByteBuffer remaining_initial_data) The connection attempt succeeded.void
exceptionThrown
(Throwable error) Handle exception thrown by this connection.getConnectionProperty
(String property_name)
-
Method Details
-
connectStarted
int connectStarted(int default_connect_timeout) The connection establishment process has started, i.e. the connection is actively being attempted.- Returns:
- modified connect timeout
-
connectSuccess
The connection attempt succeeded. The connection is now established. NOTE: Called only during initial connect attempt. -
connectFailure
The connection attempt failed. NOTE: Called only during initial connect attempt.- Parameters:
failure_msg
- failure reason
-
exceptionThrown
Handle exception thrown by this connection. NOTE: Can be called at any time during connection lifetime.- Parameters:
error
- exception
-
getConnectionProperty
-
getDescription
String getDescription()
-