24 lines
461 B
C++
24 lines
461 B
C++
#include "Socket/IOCP.hpp"
|
|
#include "Utils/ThreadPool.hpp"
|
|
|
|
#include "precomp.hpp"
|
|
|
|
namespace Chattr {
|
|
|
|
void IOCP::registerSocket(SOCKET sock) {
|
|
#ifdef _WIN32
|
|
HANDLE returnData = ::CreateIoCompletionPort((HANDLE)sock, completionPort_, sock, 0);
|
|
if (returnData == 0)
|
|
completionPort_ = returnData;
|
|
#elif __linux__
|
|
|
|
#endif
|
|
}
|
|
|
|
int IOCP::recv(void* __restrict __buf, size_t __n, int __flags) {
|
|
}
|
|
|
|
int IOCP::send(const void* __buf, size_t __n, int __flags) {
|
|
}
|
|
|
|
} |