public class UdpChannel<Request> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
关闭当前连接
|
AioSession |
connect(SocketAddress remote)
建立与远程服务的连接会话,通过AioSession可进行数据传输
|
AioSession |
connect(String host,
int port)
建立与远程服务的连接会话,通过AioSession可进行数据传输
|
public AioSession connect(SocketAddress remote)
remote - 地址public AioSession connect(String host, int port)
host - 地址port - 端口public void close()
Copyright © 2021. All rights reserved.