OpenDaVINCI  4.15.3
connection/Server.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_DMCP_CONNECTION_SERVER_H_
21 #define OPENDAVINCI_DMCP_CONNECTION_SERVER_H_
22 
23 #include <memory>
24 
29 
30 namespace odcore { namespace data { namespace dmcp { class ServerInformation; } } }
31 namespace odcore { namespace dmcp { class ModuleConfigurationProvider; } }
32 namespace odcore { namespace io { class Connection; } }
33 
34 namespace odcore {
35  namespace dmcp {
36  namespace connection {
37 
38 class ConnectionHandler;
39 
40  using namespace std;
41 
43  private:
49  Server(const Server &);
50 
56  Server& operator=(const Server &);
57 
58  public:
59  Server(const odcore::data::dmcp::ServerInformation &serverInformation,
60  ModuleConfigurationProvider &configProvider);
61  virtual ~Server();
62 
63  void setConnectionHandler(ConnectionHandler* connectionHandler);
64 
65  protected:
66  virtual void onNewConnection(std::shared_ptr<odcore::io::Connection> connection);
67 
70 
73 
75  };
76  }
77  }
78 } // odcore::dmcp
79 
80 #endif /*OPENDAVINCI_DMCP_CONNECTION_SERVER_H_*/
odcore::base::Mutex m_configProviderMutex
Definition: connection/Server.h:68
odcore::base::Mutex m_connectionHandlerMutex
Definition: connection/Server.h:71
Definition: ConnectionAcceptorListener.h:33
Definition: base/Mutex.h:49
ConnectionHandler * m_connectionHandler
Definition: connection/Server.h:72
Definition: ConnectionAcceptor.h:44
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: connection/Server.h:42
odcore::io::ConnectionAcceptor m_acceptor
Definition: connection/Server.h:74
ModuleConfigurationProvider & m_configProvider
Definition: connection/Server.h:69
Definition: ConnectionHandler.h:34
Definition: ModuleConfigurationProvider.h:38