| Package | Description |
|---|---|
| org.voovan.network | |
| org.voovan.network.aio | |
| org.voovan.network.messagesplitter | |
| org.voovan.network.nio | |
| org.voovan.network.udp |
| Modifier and Type | Field and Description |
|---|---|
protected MessageSplitter |
SocketContext.messageSplitter |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MessageSplitter |
IoSession.getMessagePartition()
获取消息分割处理类
|
MessageSplitter |
SocketContext.messageSplitter()
获取消息粘包分割器
|
| Modifier and Type | Method and Description |
|---|---|
void |
SocketContext.messageSplitter(MessageSplitter messageSplitter)
设置消息粘包分割器
|
| Modifier and Type | Method and Description |
|---|---|
protected MessageSplitter |
AioSession.getMessagePartition() |
| Modifier and Type | Class and Description |
|---|---|
class |
BufferLengthSplitter
按定长对消息分割
超过指定长度也会分割
|
class |
ByteMessageSpliter
Byte数据截断器
255+4位为数据长度+255+数据
|
class |
LineMessageSplitter
按换行对消息分割
|
class |
TimeOutMesssageSplitter |
class |
TransferSplitter
透传处理器
直接将数据进行透传,收到即调用过滤器,然后调用 IoHandler.onRecive 方法
使用这个分割器的时候不推荐使用过滤器,应为报文并不完整.
|
| Modifier and Type | Method and Description |
|---|---|
protected MessageSplitter |
NioSession.getMessagePartition() |
| Modifier and Type | Method and Description |
|---|---|
protected MessageSplitter |
UdpSession.getMessagePartition() |
Copyright © 2019 Voovan. All rights reserved.