Package com.biglybt.core.networkmanager
Interface ProtocolEndpoint
- All Known Implementing Classes:
ProtocolEndpointTCP
,ProtocolEndpointUDP
public interface ProtocolEndpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionconnectOutbound
(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, ByteBuffer initial_data, int priority, Transport.ConnectListener listener) getAdjustedAddress
(boolean to_lan) int
getType()
void
-
Field Details
-
PROTOCOL_TCP
static final int PROTOCOL_TCP- See Also:
-
PROTOCOL_UDP
static final int PROTOCOL_UDP- See Also:
-
PROTOCOL_UTP
static final int PROTOCOL_UTP- See Also:
-
CONNECT_PRIORITY_SUPER_HIGHEST
static final int CONNECT_PRIORITY_SUPER_HIGHEST- See Also:
-
CONNECT_PRIORITY_HIGHEST
static final int CONNECT_PRIORITY_HIGHEST- See Also:
-
CONNECT_PRIORITY_HIGH
static final int CONNECT_PRIORITY_HIGH- See Also:
-
CONNECT_PRIORITY_MEDIUM
static final int CONNECT_PRIORITY_MEDIUM- See Also:
-
CONNECT_PRIORITY_LOW
static final int CONNECT_PRIORITY_LOW- See Also:
-
-
Method Details
-
getType
int getType() -
getConnectionEndpoint
ConnectionEndpoint getConnectionEndpoint() -
setConnectionEndpoint
-
getAddress
InetSocketAddress getAddress() -
getAdjustedAddress
-
connectOutbound
Transport connectOutbound(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, ByteBuffer initial_data, int priority, Transport.ConnectListener listener) -
getDescription
String getDescription()
-