23 lines
397 B
C++
23 lines
397 B
C++
#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
|