19 #ifndef INCLUDE_RCF_OVERLAPPEDAMI_HPP
20 #define INCLUDE_RCF_OVERLAPPEDAMI_HPP
22 #include <boost/function.hpp>
23 #include <boost/shared_ptr.hpp>
25 #include <RCF/ThreadLibrary.hpp>
29 class RCF_EXPORT AmiNotification
33 typedef boost::function0<void> Cb;
36 void set(Cb cb, LockPtr lockPtr, MutexPtr mutexPtr);
48 typedef boost::shared_ptr<OverlappedAmi> OverlappedAmiPtr;
50 class ConnectionOrientedClientTransport;
53 public boost::enable_shared_from_this<OverlappedAmi>
66 OverlappedAmi(ConnectionOrientedClientTransport *pTcpClientTransport) :
67 mpTransport(pTcpClientTransport),
79 const AsioErrorCode & ec,
80 std::size_t bytesTransferred);
84 const AsioErrorCode & ec);
86 RecursiveMutex mMutex;
87 ConnectionOrientedClientTransport * mpTransport;
95 #endif // ! INCLUDE_RCF_OVERLAPPEDAMI_HPP