~mir-team/mir/trunk-0.1.7

« back to all changes in this revision

Viewing changes to src/client/mir_socket_rpc_channel.h

  • Committer: Daniel van Vugt
  • Date: 2013-04-24 05:22:20 UTC
  • mfrom: (628 trunk)
  • mto: This revision was merged to the branch mainline in revision 629.
  • Revision ID: daniel.van.vugt@canonical.com-20130424052220-qhpyhw2resxzr7bq
MergeĀ latestĀ lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "mir_basic_rpc_channel.h"
24
24
#include "mir_logger.h"
 
25
#include "mir/event_sink.h"
25
26
 
26
27
#include <boost/asio.hpp>
27
28
 
51
52
    MirSocketRpcChannel(const std::string& endpoint, const std::shared_ptr<Logger>& log);
52
53
    ~MirSocketRpcChannel();
53
54
 
 
55
    void set_event_handler(EventSink *sink);
 
56
 
54
57
private:
55
58
    virtual void CallMethod(const google::protobuf::MethodDescriptor* method, google::protobuf::RpcController*,
56
59
        const google::protobuf::Message* parameters, google::protobuf::Message* response,
72
75
    void on_header_read(const boost::system::error_code& error);
73
76
 
74
77
    void read_message();
 
78
    void process_event_sequence(mir::protobuf::wire::Result const& result);
75
79
 
76
80
    size_t read_message_header();
77
81
 
78
82
    mir::protobuf::wire::Result read_message_body(const size_t body_size);
 
83
 
 
84
    EventSink *event_handler;
79
85
};
80
86
 
81
87
}