Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (35 sloc) 1.46 kB
/*******************************************************************************
*
* Copyright (C) 2010, Alexander Stigsen, e-texteditor.com
*
* 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 http://opencompany.org/license.
*
* 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 {
public:
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)
private:
// Member variables
IIpcHandler& m_handler;
};
#endif //__ECONNECTION_H__
Jump to Line
Something went wrong with that request. Please try again.