~dandrader/mir/cross-compile-parallel

« back to all changes in this revision

Viewing changes to include/server/mir/frontend/connector.h

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-09-26 01:19:16 UTC
  • mfrom: (1081.4.22 mir3)
  • Revision ID: tarmac-20130926011916-jmm6x87uckd04y8s
frontend, config: Mechanism for connecting via a socket pair.

Approved by PS Jenkins bot, Kevin DuBois, Alexandros Frantzis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Thomas Voss <thomas.voss@canonical.com>
17
17
 */
18
18
 
19
 
#ifndef MIR_FRONTEND_COMMUNICATOR_H_
20
 
#define MIR_FRONTEND_COMMUNICATOR_H_
 
19
#ifndef MIR_FRONTEND_CONNECTOR_H_
 
20
#define MIR_FRONTEND_CONNECTOR_H_
21
21
 
22
22
namespace mir
23
23
{
24
24
namespace frontend
25
25
{
26
 
 
27
 
class Communicator
 
26
/// Handle client process connections
 
27
class Connector
28
28
{
29
29
public:
30
 
    virtual ~Communicator() {}
31
 
 
32
30
    virtual void start() = 0;
33
31
    virtual void stop() = 0;
34
32
 
 
33
    virtual int client_socket_fd() const = 0;
 
34
 
35
35
protected:
36
 
    Communicator() = default;
37
 
    Communicator(const Communicator&) = delete;
38
 
    Communicator& operator=(const Communicator&) = delete;
 
36
    Connector() = default;
 
37
    virtual ~Connector() = default;
 
38
    Connector(const Connector&) = delete;
 
39
    Connector& operator=(const Connector&) = delete;
39
40
};
40
 
 
41
 
}
42
 
}
43
 
 
44
 
#endif // MIR_FRONTEND_COMMUNICATOR_H_
 
41
}
 
42
}
 
43
 
 
44
#endif // MIR_FRONTEND_CONNECTOR_H_