Package net.i2p.router.client
Class SSLClientListenerRunner
java.lang.Object
net.i2p.router.client.ClientListenerRunner
net.i2p.router.client.SSLClientListenerRunner
- All Implemented Interfaces:
Runnable
SSL version of ClientListenerRunner
- Since:
- 0.8.3
- Author:
- zzz
-
Field Summary
Fields inherited from class net.i2p.router.client.ClientListenerRunner
_bindAllInterfaces, _context, _listening, _log, _manager, _port, _running, _socket, BIND_ALL_INTERFACES, CONNECT_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionSSLClientListenerRunner(RouterContext context, ClientManager manager, int port) -
Method Summary
Modifier and TypeMethodDescriptionprotected ServerSocketGet a SSLServerSocket.protected voidCreate (if necessary) and load the key store, then run.protected booleanOverridden because SSL handshake may need more time, and available() in super doesn't work.Methods inherited from class net.i2p.router.client.ClientListenerRunner
isListening, run, runConnection, stopListening
-
Constructor Details
-
SSLClientListenerRunner
-
-
Method Details
-
getServerSocket
Get a SSLServerSocket.- Overrides:
getServerSocketin classClientListenerRunner- Throws:
IOException
-
runServer
protected void runServer()Create (if necessary) and load the key store, then run.- Overrides:
runServerin classClientListenerRunner
-
validate
Overridden because SSL handshake may need more time, and available() in super doesn't work. The handshake doesn't start until a read().- Overrides:
validatein classClientListenerRunner
-