public class TunnelClient extends ObjectSE implements SmartInitializingSingleton
ServerSocket
SE を開始します。修飾子と型 | クラスと説明 |
---|---|
protected class | TunnelClient.ServerThread メインサーバースレッド。 |
コンストラクターと説明 |
---|
TunnelClient(int listenPort, TunnelConnection tunnelConnection) |
修飾子と型 | メソッドと説明 |
---|---|
void | addListener(TunnelClientListener listener) |
void | afterSingletonsInstantiated() |
protected TunnelClient.ServerThread | getServerThread() |
void | removeListener(TunnelClientListener listener) |
int | start() クライアントを起動し、受信接続を受け入れます。 |
void | stop() クライアントを停止し、サーバーを切断します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public TunnelClient(int listenPort, TunnelConnection tunnelConnection)
public void afterSingletonsInstantiated()
SmartInitializingSingleton
の afterSingletonsInstantiated
public int start() throws IOExceptionSE
IOExceptionSE
- I/O エラーの場合 public void stop() throws IOExceptionSE
IOExceptionSE
- I/O エラーの場合 protected final TunnelClient.ServerThread getServerThread()
public void addListener(TunnelClientListener listener)
public void removeListener(TunnelClientListener listener)