IPBS_Station/SDK/include/CCEpoll.h
2024-11-01 16:09:31 +08:00

41 lines
593 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();
bool CompletionKey();
private:
};
#endif