# | Line 56 | Line 56 | |
---|---|---|
56 | ||
57 | // Lovely C Sockets! | |
58 | #ifdef _WIN32 | |
59 | – | |
59 | // Windows Sockets | |
60 | #include <winsock2.h> | |
61 | #include <windows.h> | |
63 | – | |
62 | #else | |
65 | – | |
63 | // BSD Sockets | |
67 | – | #include <unistd.h> |
68 | – | #include <sys/types.h> |
69 | – | #include <sys/socket.h> |
70 | – | #include <netinet/in.h> |
71 | – | #include <netdb.h> |
72 | – | |
73 | – | #define INVALID_SOCKET -1 |
74 | – | #define SOCKET_ERROR -1 |
75 | – | |
64 | typedef int SOCKET; | |
77 | – | |
78 | – | inline int closesocket(SOCKET s) { return close(s); } |
79 | – | |
65 | #endif // _WIN32 | |
66 | ||
67 | class HttpHandler |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |