tcp/udp 추가, todo:iocp openssl 지원하도록 업데이트하기
This commit is contained in:
22
include/session/session.h
Normal file
22
include/session/session.h
Normal 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
|
||||
Reference in New Issue
Block a user