25 lines
414 B
C++
25 lines
414 B
C++
#pragma once
|
|
#include "Socket/TCPSocket.hpp"
|
|
#include "Utils/Snowflake.hpp"
|
|
#include <vector>
|
|
|
|
namespace Chattr {
|
|
class Session {
|
|
public:
|
|
Session(Chattr::TCPSocket __sock);
|
|
~Session();
|
|
|
|
void init(Chattr::TCPSocket __sock);
|
|
void destruct();
|
|
|
|
int send();
|
|
int recv();
|
|
|
|
Session(const Session&) = delete;
|
|
Session& operator=(Session&) = delete;
|
|
|
|
private:
|
|
Chattr::TCPSocket sock_;
|
|
struct Snowflake sessId_;
|
|
};
|
|
} |