Package | Description |
---|---|
org.voovan.http.server | |
org.voovan.network | |
org.voovan.network.tcp | |
org.voovan.network.udp |
Modifier and Type | Method and Description |
---|---|
SocketContext |
WebServer.getServerSocket() |
Modifier and Type | Class and Description |
---|---|
class |
IoSession<T extends SocketContext>
会话抽象类
|
Modifier and Type | Method and Description |
---|---|
protected void |
SocketContext.copyFrom(SocketContext parentSocketContext)
克隆对象
|
int |
SocketSelector.dealException(SocketContext socketContext,
Exception e)
异常处理方法
|
int |
SocketSelector.readFromChannel(SocketContext socketContext,
SelectableChannel selectableChannel)
通用封装的从通道读数据的方法
|
boolean |
SocketSelector.register(SocketContext socketContext,
int ops)
注册一个 SocketContext 到选择器
|
int |
SocketSelector.udpReadFromChannel(SocketContext<DatagramChannel,UdpSession> socketContext,
DatagramChannel datagramChannel)
UDP 从通道读数据的方法
|
int |
SocketSelector.writeToChannel(SocketContext socketContext,
ByteBuffer buffer)
通用封装的向通道写数据的方法
|
Modifier and Type | Class and Description |
---|---|
class |
TcpServerSocket
NioServerSocket 监听
|
class |
TcpSocket
NioSocket 连接
|
Constructor and Description |
---|
TcpSocket(SocketContext parentSocketContext,
SocketChannel socketChannel)
构造函数
|
Modifier and Type | Class and Description |
---|---|
class |
UdpServerSocket
UdpSocket 连接
|
class |
UdpSocket
UdpSocket 连接
|
Constructor and Description |
---|
UdpSocket(SocketContext parentSocketContext,
DatagramChannel datagramChannel,
InetSocketAddress socketAddress)
构造函数
|
Copyright © 2020 Voovan. All rights reserved.