Files
CProxy/client/Main.cpp
2022-02-27 22:42:10 +08:00

12 lines
392 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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.start();
}