Files
NP_Midterm/include/Session/Session.hpp

25 lines
366 B
C++

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