- Timestamp:
- Dec 25, 2012, 6:59:58 PM (12 years ago)
- Branches:
- master
- Children:
- 3b8adee
- Parents:
- edfd1d0
- Location:
- common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Common.cpp
redfd1d0 r4c202e0 3 3 void set_nonblock(int sock) 4 4 { 5 #if def WIN325 #if defined WINDOWS 6 6 unsigned long mode = 1; 7 7 ioctlsocket(sock, FIONBIO, &mode); 8 #el se8 #elif defined LINUX 9 9 int flags; 10 10 flags = fcntl(sock, F_GETFL,0); -
common/Common.h
redfd1d0 r4c202e0 2 2 #define _COMMON_H 3 3 4 #include <fcntl.h> 5 #include <assert.h> 4 #include "Compiler.h" 5 6 #if defined WINDOWS 7 #include <winsock2.h> 8 #include <WS2tcpip.h> 9 #elif defined LINUX 10 #include <fcntl.h> 11 #include <assert.h> 12 #endif 6 13 7 14 void set_nonblock(int sock); -
common/Player.cpp
redfd1d0 r4c202e0 2 2 3 3 #include <iostream> 4 #include <arpa/inet.h>5 4 6 5 using namespace std; -
common/Player.h
redfd1d0 r4c202e0 2 2 #define _PLAYER_H 3 3 4 #include <netinet/in.h> 4 #include "Compiler.h" 5 6 #if defined WINDOWS 7 #include <winsock2.h> 8 #include <WS2tcpip.h> 9 #elif defined LINUX 10 #include <netinet/in.h> 11 #endif 12 5 13 #include <string> 6 14
Note:
See TracChangeset
for help on using the changeset viewer.