~raof/mir/rootless-xserver-work

« back to all changes in this revision

Viewing changes to src/server/frontend/socket_session.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2014-01-17 13:53:05 UTC
  • mfrom: (1333.2.12 mir)
  • Revision ID: tarmac-20140117135305-92ioysypng39cssc
frontend: refactoring to make it easier to expose the underlying RPC transport on the server side.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include "socket_session.h"
20
 
#include "message_processor.h"
21
20
#include "message_sender.h"
22
21
#include "message_receiver.h"
 
22
#include "mir/frontend/message_processor.h"
23
23
 
24
24
#include <boost/signals2.hpp>
25
25
#include <boost/throw_exception.hpp>
77
77
}
78
78
 
79
79
void mfd::SocketSession::on_new_message(const boost::system::error_code& error)
 
80
try
80
81
{
81
82
    if (error)
82
83
    {
83
 
        connected_sessions->remove(id());
84
84
        BOOST_THROW_EXCEPTION(std::runtime_error(error.message()));
85
85
    }
86
86
 
95
95
        connected_sessions->remove(id());
96
96
    }
97
97
}
 
98
catch (...)
 
99
{
 
100
    connected_sessions->remove(id());
 
101
    throw;
 
102
}
98
103
 
99
104
void mfd::SocketSession::on_response_sent(bs::error_code const& error, std::size_t)
100
105
{