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