IM/MS/MS.h
dongl 61ff6fe46b 修改了 添加好友的代码
发现了获取验证码的bug delete sri后 无报错不发数据包
还有填写验证码 错误 session删除了
2023-06-16 20:37:27 +08:00

31 lines
706 B
C++

//
// Created by dongl on 23-4-8.
//
#ifndef IM_SERVER_H
#define IM_SERVER_H
#include "tbb/tbb.h"
#include "event2/util.h"
#include "pool/thread/ev_pool.h"
#include "mmm/management.h"
class MS {
public:
MS();
virtual ~MS();
static void link(struct evconnlistener *e, evutil_socket_t s, struct sockaddr *addr, int socklen, void *arg);
static void listener();
static void read_cb(struct bufferevent *bev, void *ctx);
static void write_cb(struct bufferevent *bev, void *ctx);
static void event_cb(struct bufferevent *bev, short what, void *ctx);
static ev_pool* localEvPool();
private:
static ev_pool* pool;
static class management* mage;
};
#endif //IM_SERVER_H