#pragma once #include "Utils/ThreadPool.hpp" namespace Chattr { class IOCP { public: IOCP(std::shared_ptr __IOCPThread); ~IOCP(); void init(std::shared_ptr __IOCPThread); int recv(void* __restrict __buf, size_t __n, int __flags); int send(const void* __buf, size_t __n, int __flags); private: std::shared_ptr IOCPThread_; #ifdef _WIN32 HANDLE completinPort_; #elif __linux__ #endif }; }