Package com.biglybt.core.networkmanager
Interface ProtocolEndpoint
-
- All Known Implementing Classes:
ProtocolEndpointTCP
,ProtocolEndpointUDP
public interface ProtocolEndpoint
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECT_PRIORITY_HIGH
static int
CONNECT_PRIORITY_HIGHEST
static int
CONNECT_PRIORITY_LOW
static int
CONNECT_PRIORITY_MEDIUM
static int
CONNECT_PRIORITY_SUPER_HIGHEST
static int
PROTOCOL_TCP
static int
PROTOCOL_UDP
static int
PROTOCOL_UTP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Transport
connectOutbound(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, java.nio.ByteBuffer initial_data, int priority, Transport.ConnectListener listener)
java.net.InetSocketAddress
getAddress()
java.net.InetSocketAddress
getAdjustedAddress(boolean to_lan)
ConnectionEndpoint
getConnectionEndpoint()
java.lang.String
getDescription()
int
getType()
void
setConnectionEndpoint(ConnectionEndpoint ce)
-
-
-
Field Detail
-
PROTOCOL_TCP
static final int PROTOCOL_TCP
- See Also:
- Constant Field Values
-
PROTOCOL_UDP
static final int PROTOCOL_UDP
- See Also:
- Constant Field Values
-
PROTOCOL_UTP
static final int PROTOCOL_UTP
- See Also:
- Constant Field Values
-
CONNECT_PRIORITY_SUPER_HIGHEST
static final int CONNECT_PRIORITY_SUPER_HIGHEST
- See Also:
- Constant Field Values
-
CONNECT_PRIORITY_HIGHEST
static final int CONNECT_PRIORITY_HIGHEST
- See Also:
- Constant Field Values
-
CONNECT_PRIORITY_HIGH
static final int CONNECT_PRIORITY_HIGH
- See Also:
- Constant Field Values
-
CONNECT_PRIORITY_MEDIUM
static final int CONNECT_PRIORITY_MEDIUM
- See Also:
- Constant Field Values
-
CONNECT_PRIORITY_LOW
static final int CONNECT_PRIORITY_LOW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
-
getConnectionEndpoint
ConnectionEndpoint getConnectionEndpoint()
-
setConnectionEndpoint
void setConnectionEndpoint(ConnectionEndpoint ce)
-
getAddress
java.net.InetSocketAddress getAddress()
-
getAdjustedAddress
java.net.InetSocketAddress getAdjustedAddress(boolean to_lan)
-
connectOutbound
Transport connectOutbound(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, java.nio.ByteBuffer initial_data, int priority, Transport.ConnectListener listener)
-
getDescription
java.lang.String getDescription()
-
-