java.lang.Runnable
SSLClientListenerRunner
class ClientListenerRunner
extends java.lang.Object
implements java.lang.Runnable
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected boolean |
_bindAllInterfaces |
|
protected RouterContext |
_context |
|
protected boolean |
_listening |
|
protected Log |
_log |
|
protected ClientManager |
_manager |
|
protected int |
_port |
|
protected boolean |
_running |
|
protected java.net.ServerSocket |
_socket |
|
static java.lang.String |
BIND_ALL_INTERFACES |
|
protected static int |
CONNECT_TIMEOUT |
give the i2cp client 5 seconds to show that they're really i2cp clients
|
コンストラクタ | 説明 |
---|---|
ClientListenerRunner(RouterContext context,
ClientManager manager,
int port) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
protected java.net.ServerSocket |
getServerSocket() |
Get a ServerSocket.
|
boolean |
isListening() |
|
void |
run() |
|
protected void |
runConnection(java.net.Socket socket) |
Handle the connection by passing it off to a
ClientConnectionRunner |
protected void |
runServer() |
Start up the socket listener, listens for connections, and
fires those connections off via
runConnection . |
void |
stopListening() |
|
protected boolean |
validate(java.net.Socket socket) |
Verify the first byte.
|
protected final Log _log
protected final RouterContext _context
protected final ClientManager _manager
protected java.net.ServerSocket _socket
protected final int _port
protected final boolean _bindAllInterfaces
protected volatile boolean _running
protected volatile boolean _listening
public static final java.lang.String BIND_ALL_INTERFACES
protected static final int CONNECT_TIMEOUT
public ClientListenerRunner(RouterContext context, ClientManager manager, int port)
public boolean isListening()
protected java.net.ServerSocket getServerSocket() throws java.io.IOException
java.io.IOException
public void run()
run
インタフェース内 java.lang.Runnable
protected void runServer()
runConnection
.
This only returns if the socket cannot be opened or there is a catastrophic
failure.protected boolean validate(java.net.Socket socket)
protected void runConnection(java.net.Socket socket)
ClientConnectionRunner
public void stopListening()