tcp/udp 추가, todo:iocp openssl 지원하도록 업데이트하기

This commit is contained in:
2025-05-27 21:52:21 +09:00
parent 27f1e63c98
commit 466a80f02b
25 changed files with 1056 additions and 6 deletions

22
include/session/session.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "socket/iocp.h"
#include "utils/thread_pool.h"
namespace happytanuki {
enum class SessionProtocol { UDP, TCP, TLS, QUIC };
class Session {
public:
Session(utils::ThreadPool* tp, SessionProtocol proto);
private:
Socket::IOCP iocp_;
utils::ThreadPool* tp_;
};
} // namespace happytanuki