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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
connectAttemptStarted(int default_connect_timeout)
The connection establishment process has started, i.e.void
connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed.void
connectSuccess(Transport transport, java.nio.ByteBuffer remaining_initial_data)
The connection attempt succeeded.java.lang.Object
getConnectionProperty(java.lang.String property_name)
-
-
-
Method Detail
-
connectAttemptStarted
int connectAttemptStarted(int default_connect_timeout)
The connection establishment process has started, i.e. the connection is actively being attempted.- Returns:
- modified timeout
-
connectSuccess
void connectSuccess(Transport transport, java.nio.ByteBuffer remaining_initial_data)
The connection attempt succeeded. The connection is now established.
-
connectFailure
void connectFailure(java.lang.Throwable failure_msg)
The connection attempt failed.- Parameters:
failure_msg
- failure reason
-
getConnectionProperty
java.lang.Object getConnectionProperty(java.lang.String property_name)
-
-