Package | Description |
---|---|
cn.hutool.socket.aio |
AIO相关封装
|
Modifier and Type | Method and Description |
---|---|
AioServer |
AioServer.accept()
处理接入的客户端
|
AioServer |
AioServer.init(InetSocketAddress address)
初始化
|
AioServer |
AioServer.setIoAction(IoAction<ByteBuffer> ioAction)
设置IO处理器,单例存在
|
<T> AioServer |
AioServer.setOption(SocketOption<T> name,
T value)
设置 Socket 的 Option 选项
选项见: StandardSocketOptions |
Modifier and Type | Method and Description |
---|---|
void |
AcceptHandler.completed(AsynchronousSocketChannel socketChannel,
AioServer aioServer) |
void |
AcceptHandler.failed(Throwable exc,
AioServer aioServer) |
Copyright © 2024. All rights reserved.