Message-Queues beta 1.1
A Message-Queues based Cpp
 
载入中...
搜索中...
未找到
connection.hpp 文件参考

该文件定义了 Connection 类,负责管理客户端连接、信道的创建与关闭以及消息处理。 更多...

#include "muduo/protobuf/dispatcher.h"
#include "muduo/protobuf/codec.h"
#include "muduo/base/Mutex.h"
#include "muduo/base/Logging.h"
#include "muduo/net/EventLoop.h"
#include "muduo/net/TcpClient.h"
#include "muduo/net/EventLoopThread.h"
#include "muduo/base/CountDownLatch.h"
#include "channel.hpp"
#include "worker.hpp"
#include "../common/logger.hpp"
connection.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  XuMQ::Connection
 连接管理模块 更多...
 

命名空间

namespace  XuMQ
 

详细描述

该文件定义了 Connection 类,负责管理客户端连接、信道的创建与关闭以及消息处理。

包含了对 Muduo 网络库、Protobuf 协议编码与分发、异步工作器和日志模块的引用。 主要功能是通过 TcpClient 管理与服务器的连接,利用分发器处理不同类型的消息,并支持信道的创建与关闭。 信道用于消息队列中消息的发送与消费,异步工作器则管理多线程任务。