Service_NSSM/SDK/include/CCEpoll.h

40 lines
567 B
C
Raw Normal View History

2025-03-06 13:47:33 +08:00
#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