Interface ConnectionManager
- All Known Implementing Classes:
ConnectionManagerImpl
public interface ConnectionManager
Manages connections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(InetSocketAddress remote_address, MessageStreamEncoder encoder, MessageStreamDecoder decoder) Create a new unconnected remote connection (for outbound-initiated connections).createRateLimiter(String name, int bytes_per_second) createTransportCipher(String algorithm, int mode, SecretKeySpec key_spec, AlgorithmParameterSpec params) createTransportFilter(Connection connection, TransportCipher read_cipher, TransportCipher write_cipher) intReturns the current view on whether or not we are inwardly connectable via our listener portObject[]
-
Field Details
-
NAT_UNKNOWN
static final int NAT_UNKNOWN- See Also:
-
NAT_OK
static final int NAT_OK- See Also:
-
NAT_PROBABLY_OK
static final int NAT_PROBABLY_OK- See Also:
-
NAT_BAD
static final int NAT_BAD- See Also:
-
-
Method Details
-
createConnection
Connection createConnection(InetSocketAddress remote_address, MessageStreamEncoder encoder, MessageStreamDecoder decoder) Create a new unconnected remote connection (for outbound-initiated connections).- Parameters:
remote_address- to connect to- Returns:
- not yet established connection
-
getNATStatus
int getNATStatus()Returns the current view on whether or not we are inwardly connectable via our listener port- Returns:
-
getNATStatusEx
Object[] getNATStatusEx() -
createTransportCipher
TransportCipher createTransportCipher(String algorithm, int mode, SecretKeySpec key_spec, AlgorithmParameterSpec params) throws TransportException - Throws:
TransportException- Since:
- 3.0.5.3
-
createTransportFilter
TransportFilter createTransportFilter(Connection connection, TransportCipher read_cipher, TransportCipher write_cipher) throws TransportException - Throws:
TransportException- Since:
- 3.0.5.3
-
createRateLimiter
- Since:
- 4.7.0.3
-