with spdlog

This commit is contained in:
lzs123
2022-02-27 01:10:28 +08:00
parent 215813331b
commit 6f59f26bcf
136 changed files with 26092 additions and 215 deletions

View File

@@ -1,9 +1,12 @@
#include <sys/types.h>
#include "lib/Msg.h"
#include "Client.h"
#include "spdlog/spdlog.h"
int main() {
// 初始化日志格式
spdlog::set_pattern("[%@ %H:%M:%S:%e %z] [%^%L%$] [thread %t] %v");
// 主线程loop处理ctlConn的读写
// eventloop线程池处理proxyConn的读写+innerConn的读写
Client client(4, "127.0.0.1", 8080, "127.0.0.1", 7777);
Client client(1, "127.0.0.1", 8080, "127.0.0.1", 7777);
client.start();
}