Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 1.43 KB
* Copyright (C) 2010, Alexander Stigsen,
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
#ifndef __ECONNECTION_H__
#define __ECONNECTION_H__
#include "hessian_ipc/connection.h"
#include "IConnection.h"
// Pre-definitions
class IIpcHandler;
class eIpcConnection : public hessian_ipc::connection, public IConnection {
explicit eIpcConnection(boost::asio::io_service& io_service, hessian_ipc::connection_manager& manager, IIpcHandler& handler);
virtual ~eIpcConnection();
// Method handling
void invoke_method();
void on_close();
// Interface methods
virtual const hessian_ipc::Call* get_call(); // The request recieved (may be NULL)
virtual hessian_ipc::Writer& get_reply_writer();
virtual void reply_done(); // notify connection that it can send the reply (threadsafe)
virtual void notifier_done(); // notify connection that it can send the notifier (threadsafe)
// Member variables
IIpcHandler& m_handler;
#endif //__ECONNECTION_H__