Class ConnectionManagerImpl
java.lang.Object
com.biglybt.pifimpl.local.network.ConnectionManagerImpl
- All Implemented Interfaces:
ConnectionManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface ConnectionManager
NAT_BAD, NAT_OK, NAT_PROBABLY_OK, NAT_UNKNOWN -
Constructor Summary
Constructors -
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 bps) 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[]static ConnectionManagerImplgetSingleton(Core core)
-
Field Details
-
instance
-
core
-
-
Constructor Details
-
ConnectionManagerImpl
-
-
Method Details
-
getSingleton
-
createConnection
public Connection createConnection(InetSocketAddress remote_address, MessageStreamEncoder encoder, MessageStreamDecoder decoder) Description copied from interface:ConnectionManagerCreate a new unconnected remote connection (for outbound-initiated connections).- Specified by:
createConnectionin interfaceConnectionManager- Parameters:
remote_address- to connect to- Returns:
- not yet established connection
-
getNATStatus
public int getNATStatus()Description copied from interface:ConnectionManagerReturns the current view on whether or not we are inwardly connectable via our listener port- Specified by:
getNATStatusin interfaceConnectionManager- Returns:
-
getNATStatusEx
- Specified by:
getNATStatusExin interfaceConnectionManager
-
createTransportCipher
public TransportCipher createTransportCipher(String algorithm, int mode, SecretKeySpec key_spec, AlgorithmParameterSpec params) throws TransportException - Specified by:
createTransportCipherin interfaceConnectionManager- Throws:
TransportException
-
createTransportFilter
public TransportFilter createTransportFilter(Connection connection, TransportCipher read_cipher, TransportCipher write_cipher) throws TransportException - Specified by:
createTransportFilterin interfaceConnectionManager- Throws:
TransportException
-
createRateLimiter
- Specified by:
createRateLimiterin interfaceConnectionManager
-