public class SocketClient
extends com.zman.net.pull.AbstractClient<com.zman.pull.stream.IDuplex>
| Constructor and Description |
|---|
SocketClient(com.zman.thread.eventloop.EventLoop eventLoop) |
SocketClient(com.zman.thread.eventloop.EventLoop eventLoop,
SelectionKeyProcessor selectionKeyProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String ip,
int port)
连接目标服务地址
1.
|
void |
disconnect()
关闭socket
|
public SocketClient(com.zman.thread.eventloop.EventLoop eventLoop)
public SocketClient(com.zman.thread.eventloop.EventLoop eventLoop,
SelectionKeyProcessor selectionKeyProcessor)
public void connect(String ip, int port)
ip - ipport - 端口public void disconnect()
disconnect in interface com.zman.net.pull.IClient<com.zman.pull.stream.IDuplex>disconnect in class com.zman.net.pull.AbstractClient<com.zman.pull.stream.IDuplex>Copyright © 2019. All rights reserved.