IPBS_Station/SDK/include/CCEpoll.h
2024-08-13 17:07:34 +08:00

40 lines
567 B
C++

#ifndef CCEpoll_H
#define CCEpoll_H
#pragma once
#include "CCSocket.h"
#ifdef _WIN32
#elif __linux__
#endif
typedef int CCEpoll_t;
class CCEpoll
{
private:
CCSocket listenSocket;
#ifdef _WIN32
HANDLE hIoCompletionPort = nullptr;
DWORD bytesTransferred{};
ULONG_PTR completionKey{};
OVERLAPPED* pOverlapped{};
#elif __linux__
#endif
public:
CCEpoll() = default;
CCEpoll(CCSocket& socket,int size = 10);
void Create(CCSocket& socket,int size = 10);
CCSocket Accept(CCSocket& socket);
bool Status();
private:
};
#endif