#ifndef CGE_NET_INTERNAL_H #define CGE_NET_INTERNAL_H #define _POSIX_C_SOURCE 200112L #include #include #include "../CgeNet.h" struct PollData; struct CgeNetSocket { int handle; int domain; int type; int lastError; void *context; CgeNetPoll *pollObject; size_t pollIndex; }; struct PollData { CgeNetSocket *socket; CgeNetCallback callback; int events; }; struct CgeNetPoll { struct pollfd *pfd; struct PollData *data; size_t size; size_t capacity; int lastError; }; #endif /* CGE_NET_INTERNAL_H */