Last change
on this file since 9729 was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
710 bytes
|
Rev | Line | |
---|
[5987] | 1 | /*! |
---|
| 2 | * @file server_socket.h |
---|
[9656] | 3 | * waits for incoming connections and handles them. |
---|
| 4 | * |
---|
[5987] | 5 | */ |
---|
| 6 | |
---|
| 7 | #ifndef _SERVER_SOCKET |
---|
| 8 | #define _SERVER_SOCKET |
---|
| 9 | |
---|
| 10 | /* include this file, it contains some default definitions */ |
---|
| 11 | #include "netdefs.h" |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | /* include base_object.h since all classes are derived from this one */ |
---|
| 15 | #include "base_object.h" |
---|
| 16 | #include "network_socket.h" |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | class ServerSocket : public BaseObject |
---|
| 20 | { |
---|
[7954] | 21 | public: |
---|
| 22 | ServerSocket( int port); |
---|
[5987] | 23 | |
---|
[7954] | 24 | virtual ~ServerSocket(); |
---|
[5987] | 25 | |
---|
[7954] | 26 | virtual bool listen( unsigned int port ) = 0; |
---|
| 27 | virtual NetworkSocket* getNewSocket( void ) = 0; |
---|
| 28 | virtual void close() = 0; |
---|
| 29 | virtual void update() = 0; |
---|
| 30 | virtual bool isOk() { return this->bOk; }; |
---|
[5987] | 31 | |
---|
[7954] | 32 | protected: |
---|
| 33 | bool bOk; |
---|
| 34 | |
---|
[5987] | 35 | }; |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.