Polyphase Game Engine
Loading...
Searching...
No Matches
NetworkTypes.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#if PLATFORM_WINDOWS
6#include <winsock.h>
7#elif PLATFORM_LINUX
8#include <sys/socket.h>
9#include <netdb.h>
10#include <sys/ioctl.h>
11#elif PLATFORM_ANDROID
12#include <sys/socket.h>
13#include <netdb.h>
14#include <sys/ioctl.h>
15#elif PLATFORM_3DS
16#include <sys/socket.h>
17#include <netdb.h>
18#include <sys/ioctl.h>
19#elif PLATFORM_DOLPHIN
20#include <network.h>
21#elif PLATFORM_ANDROID
22#include <sys/socket.h>
23#include <netdb.h>
24#include <sys/ioctl.h>
25#endif
26
27#if PLATFORM_WINDOWS
28 typedef SOCKET SocketHandle;
29#elif PLATFORM_LINUX
30 typedef int32_t SocketHandle;
31#elif PLATFORM_ANDROID
32 typedef int32_t SocketHandle;
33#elif PLATFORM_3DS
34 typedef int32_t SocketHandle;
35#elif PLATFORM_DOLPHIN
36 typedef int32_t SocketHandle;
37#endif
38