Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/tcp_server_socket.h @ 9406

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

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

File size: 730 bytes
Line 
1/*!
2 * @file server_socket.h
3 *  waits for incoming connections
4
5 */
6
7#ifndef _TCP_SERVER_SOCKET
8#define _TCP_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 "server_socket.h"
17
18
19class TcpServerSocket : public ServerSocket
20{
21  public:
22    TcpServerSocket( int port );
23
24    virtual ~TcpServerSocket();
25
26    virtual bool listen( unsigned int port );
27    virtual NetworkSocket* getNewSocket( void );
28    virtual void close();
29    virtual void update() {};
30
31  private:
32    TCPsocket listenSocket;
33    bool terminateThread;
34
35    bool _isListening;
36
37    void init();
38
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.