Parent Directory | Revision Log
Initial revision
1 | #ifndef __Server_H__ |
2 | #define __Server_H__ |
3 | |
4 | #ifdef WIN32 |
5 | #include <winsock.h> |
6 | #endif |
7 | |
8 | #ifdef linux |
9 | #include <pthread.h> |
10 | #include <netinet/in.h> |
11 | #include <sys/types.h> |
12 | #include <sys/socket.h> |
13 | #include <netdb.h> |
14 | #include <arpa/inet.h> |
15 | #include <unistd.h> |
16 | #endif |
17 | |
18 | #ifdef sun |
19 | #include <pthread.h> |
20 | #include <netinet/in.h> |
21 | #include <sys/types.h> |
22 | #include <sys/socket.h> |
23 | #include <netdb.h> |
24 | #include <arpa/inet.h> |
25 | #include <unistd.h> |
26 | #endif |
27 | |
28 | #include "PacketInfo.h" |
29 | #include "../String/StringInput.h" |
30 | |
31 | class Server |
32 | { |
33 | |
34 | public: |
35 | Server::Server(); |
36 | Server::~Server(); |
37 | void start(); |
38 | int SetUpListener(const char* pcAddress, int nPort); |
39 | int DoWinsock(); |
40 | |
41 | |
42 | private: |
43 | |
44 | |
45 | }; |
46 | |
47 | #endif |
root@recompile.se | ViewVC Help |
Powered by ViewVC 1.1.26 |