Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/server_socket.h @ 7540

Last change on this file since 7540 was 7540, checked in by rennerc, 18 years ago

implemented udp sockets

File size: 660 bytes
Line 
1/*!
2 * @file server_socket.h
3 *  waits for incoming connections
4
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{
21  public:
22    ServerSocket( int port);
23
24    virtual ~ServerSocket();
25
26    virtual bool listen( unsigned int port ) = 0;
27    virtual NetworkSocket* getNewSocket( void ) = 0;
28    virtual void close() = 0;
29    virtual bool isOk() { return this->bOk; };
30
31  protected:
32    bool bOk;
33
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.