medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

platform_net.h (378B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _PLATFORM_NET_H_
#define _PLATFORM_NET_H_

#include "platform.h"

#if PLATFORM_WINDOWS
#include <winsock2.h>
#include <ws2tcpip.h>
#elif PLATFORM_UNIX
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <netdb.h>
#define closesocket close
#else
#error new platform
#endif

#endif // _PLATFORM_NET_H_