Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/server_socket.h @ 10247

Last change on this file since 10247 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 749 bytes
RevLine 
[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
19class ServerSocket : public BaseObject
20{
[9869]21  ObjectListDeclaration(ServerSocket);
[7954]22  public:
23    ServerSocket( int port);
[5987]24
[7954]25    virtual ~ServerSocket();
[5987]26
[7954]27    virtual bool listen( unsigned int port ) = 0;
28    virtual NetworkSocket* getNewSocket( void ) = 0;
29    virtual void close() = 0;
30    virtual void update() = 0;
31    virtual bool isOk() { return this->bOk; };
[5987]32
[7954]33  protected:
34    bool bOk;
35
[5987]36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.