summaryrefslogtreecommitdiff
path: root/src/enet/unix.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 17:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 17:47:39 +0300
commit4ef35e9ef757da1db724c5d784048601144c934c (patch)
treec683545ec5c2bc43d619eb9de994659ae88405b0 /src/enet/unix.h
parent05abb208b47329b60a3cbbef86f8bc88f91ab5de (diff)
downloadmanaverse-4ef35e9ef757da1db724c5d784048601144c934c.tar.gz
manaverse-4ef35e9ef757da1db724c5d784048601144c934c.tar.bz2
manaverse-4ef35e9ef757da1db724c5d784048601144c934c.tar.xz
manaverse-4ef35e9ef757da1db724c5d784048601144c934c.zip
Remove enet code from sources.
It only need for manaserv server type, but manaserv still in long development.
Diffstat (limited to 'src/enet/unix.h')
-rw-r--r--src/enet/unix.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/enet/unix.h b/src/enet/unix.h
deleted file mode 100644
index 087015e51..000000000
--- a/src/enet/unix.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- @file unix.h
- @brief ENet Unix header
-*/
-#ifndef __ENET_UNIX_H__
-#define __ENET_UNIX_H__
-
-#include <stdlib.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <unistd.h>
-
-typedef int ENetSocket;
-
-enum
-{
- ENET_SOCKET_NULL = -1
-};
-
-#define ENET_HOST_TO_NET_16(value) (htons (value)) /**< macro that converts host to net byte-order of a 16-bit value */
-#define ENET_HOST_TO_NET_32(value) (htonl (value)) /**< macro that converts host to net byte-order of a 32-bit value */
-
-#define ENET_NET_TO_HOST_16(value) (ntohs (value)) /**< macro that converts net to host byte-order of a 16-bit value */
-#define ENET_NET_TO_HOST_32(value) (ntohl (value)) /**< macro that converts net to host byte-order of a 32-bit value */
-
-typedef struct
-{
- void * data;
- size_t dataLength;
-} ENetBuffer;
-
-#define ENET_CALLBACK
-
-#define ENET_API extern
-
-typedef fd_set ENetSocketSet;
-
-#define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset))
-#define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset))
-#define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLEAR (socket, & (sockset))
-#define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset))
-
-#endif /* __ENET_UNIX_H__ */
-