Files
CgeNet/win32/Internal.h
Mikhail Romanko aec33ef3d8
Some checks failed
CI / build-and-analyze (push) Failing after 1m57s
Initial commit
2026-08-08 16:02:20 +03:00

35 lines
557 B
C

#ifndef CGE_NET_INTERNAL_H
#define CGE_NET_INTERNAL_H
#include <winsock2.h>
#include <ws2tcpip.h>
#include "../CgeNet.h"
struct PollData;
struct CgeNetSocket {
SOCKET handle;
int domain;
int type;
int lastError;
void *context;
CgeNetPoll *pollObject;
size_t pollIndex;
};
struct PollData {
CgeNetSocket *socket;
CgeNetCallback callback;
int events;
};
struct CgeNetPoll {
WSAPOLLFD *pfd;
struct PollData *data;
size_t size;
size_t capacity;
int lastError;
};
#endif /* CGE_NET_INTERNAL_H */