public class SimpleTcpClient extends Object
| 构造器和说明 |
|---|
SimpleTcpClient(String host,
int port,
Decoder decoder,
Encoder encoder,
SimpleTcpClientHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<TcpConnection> |
connect() |
Future<TcpConnection> |
connect(long timeout) |
void |
connect(long timeout,
com.firefly.net.support.wrap.client.SessionOpenedCallback callback) |
void |
shutdown() |
public SimpleTcpClient(String host, int port, Decoder decoder, Encoder encoder, SimpleTcpClientHandler handler)
public Future<TcpConnection> connect()
public Future<TcpConnection> connect(long timeout)
public void connect(long timeout,
com.firefly.net.support.wrap.client.SessionOpenedCallback callback)
public void shutdown()
Copyright © 2016. All rights reserved.