This commit is contained in:
34
win32/Internal.h
Normal file
34
win32/Internal.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user