MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
| 枚举
Communicator

负责处理与客户端的通讯 更多...

class  CliCommunicator
 用于命令行模式的通讯器 更多...
 
class  Communicator
 负责与客户端通讯 更多...
 
class  CommunicatorFactory
 通讯协议工厂 更多...
 
class  MysqlCommunicator
 与客户端通讯 更多...
 
class  PlainCommunicator
 与客户端进行通讯 更多...
 
class  RingBuffer
 环形缓存,当前用于通讯写入数据时的缓存 更多...
 
class  Server
 负责接收客户端消息并创建任务 更多...
 
class  ServerParam
 服务端启动参数 更多...
 

枚举

enum class  CommunicateProtocol { CommunicateProtocol::PLAIN , CommunicateProtocol::CLI , CommunicateProtocol::MYSQL }
 当前支持的通讯协议 更多...
 

详细描述

负责处理与客户端的通讯

当前有两种通讯协议,一种是普通的文本协议,以'\0'作为结尾,一种是mysql协议。

枚举类型说明

◆ CommunicateProtocol

enum class CommunicateProtocol
strong

当前支持的通讯协议

枚举值
PLAIN 

以'\0'结尾的协议

CLI 

与客户端进行交互的协议

MYSQL 

mysql通讯协议。具体实现参考 MysqlCommunicator