summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-08 16:50:54 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-08 16:50:54 +0000
commit4e6b84f5321154587932e5758f63280bde34b02e (patch)
treef0719b2bb03c4b290a193c680d16e0644d084950 /src/common/socket.c
parent14710780f3b6043e6d9c859137159e76d0bb1e51 (diff)
downloadhercules-4e6b84f5321154587932e5758f63280bde34b02e.tar.gz
hercules-4e6b84f5321154587932e5758f63280bde34b02e.tar.bz2
hercules-4e6b84f5321154587932e5758f63280bde34b02e.tar.xz
hercules-4e6b84f5321154587932e5758f63280bde34b02e.zip
Unimportant cleanups
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9633 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 3c8396961..6589978bb 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -35,6 +35,10 @@
#define S_ENOTSOCK WSAENOTSOCK
#define S_EWOULDBLOCK WSAEWOULDBLOCK
#define S_ECONNABORTED WSAECONNABORTED
+
+ #define SHUT_RD SD_RECEIVE
+ #define SHUT_WR SD_SEND
+ #define SHUT_RDWR SD_BOTH
#else
#define SOCKET_ERROR -1
#define INVALID_SOCKET -1
@@ -56,17 +60,6 @@
#include "../common/malloc.h"
#include "../common/showmsg.h"
-/// shutdown() constants
-#ifndef SHUT_RD
-#ifdef SD_RECEIVE
- #define SHUT_RD SD_RECEIVE
- #define SHUT_WR SD_SEND
- #define SHUT_RDWR SD_BOTH
-#else
- #error "Unknown socket constants, please report this to a developer"
-#endif
-#endif
-
fd_set readfds;
int fd_max;
time_t last_tick;