19 #ifndef INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
20 #define INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
22 #include <RCF/Service.hpp>
27 typedef boost::shared_ptr<RcfSession> RcfSessionPtr;
29 class ClientTransport;
30 typedef std::auto_ptr<ClientTransport> ClientTransportAutoPtr;
32 typedef boost::function2<void, RcfSessionPtr, ClientTransportAutoPtr> OnCallbackConnectionCreated;
34 class I_CreateCallbackConnection;
35 template<
typename T>
class RcfClient;
39 class CallbackConnectionService :
public I_Service, boost::noncopyable
43 CallbackConnectionService();
47 void onServiceAdded(RcfServer & server);
48 void onServiceRemoved(RcfServer & server);
49 void onServerStart(RcfServer & server);
52 friend class RcfClient<I_CreateCallbackConnection>;
53 void CreateCallbackConnection();
57 OnCallbackConnectionCreated mOnCallbackConnectionCreated;
60 typedef boost::shared_ptr<CallbackConnectionService> CallbackConnectionServicePtr;
64 #endif // ! INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP