Last change
on this file since 230 was
230,
checked in by scheusso, 16 years ago
|
created base-class Synchronisable; the files are still quite empty
|
File size:
741 bytes
|
Rev | Line | |
---|
[230] | 1 | // |
---|
| 2 | // C++ Interface: Server |
---|
| 3 | // |
---|
| 4 | // Description: |
---|
| 5 | // |
---|
| 6 | // |
---|
| 7 | // Author: Oliver Scheuss, (C) 2007 |
---|
| 8 | // |
---|
| 9 | // Copyright: See COPYING file that comes with this distribution |
---|
| 10 | // |
---|
| 11 | // |
---|
| 12 | |
---|
| 13 | #ifndef NETWORK_SERVER_H |
---|
| 14 | #define NETWORK_SERVER_H |
---|
| 15 | |
---|
| 16 | #include <string> |
---|
| 17 | |
---|
| 18 | #include "network/ConnectionManager.h" |
---|
| 19 | #include "network/PacketManager.h" |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | namespace network{ |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | * This class is the root class of the network module for a server. |
---|
| 26 | * It implements all functions necessary for a Server |
---|
| 27 | */ |
---|
| 28 | class Server : PacketDecoder{ |
---|
| 29 | public: |
---|
| 30 | Server(); |
---|
| 31 | Server(int port, std::string bindAddress); |
---|
| 32 | Server(int port, const char *bindAddress); |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | ConnectionManager connection; |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.