Changeset 248e3c1 in network-game
- Timestamp:
- Dec 15, 2013, 10:44:40 PM (11 years ago)
- Branches:
- master
- Children:
- e437a19
- Parents:
- 50643fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Common.cpp
r50643fa r248e3c1 1 1 #include "Common.h" 2 3 #include "Compiler.h" 4 5 #if defined WINDOWS 6 #include <winsock2.h> 7 #endif 2 8 3 9 #include <sstream> … … 29 35 ioctlsocket(sock, FIONBIO, &mode); 30 36 #elif defined LINUX 31 int flags; 32 flags = fcntl(sock, F_GETFL,0); 37 int flags = fcntl(sock, F_GETFL,0); 33 38 assert(flags != -1); 34 39 fcntl(sock, F_SETFL, flags | O_NONBLOCK);
Note:
See TracChangeset
for help on using the changeset viewer.