1 #ifndef damon_session_h
2 #define damon_session_h
4 #include "Details/prologue.h"
7 #include <boost/shared_ptr.hpp>
8 #include <boost/noncopyable.hpp>
10 namespace Spin
{ class Connection
; }
11 namespace Scorpion
{ class Context
; }
17 class DAMON_API Session
: boost::noncopyable
23 void setContext(const Scorpion::Context
& context
);
26 typedef std::map
< std::string
, boost::shared_ptr
< Spin::Connection
> > ConnectionCache_
;
28 Scorpion::Context
* context_
;
29 ConnectionCache_ connection_cache_
;
31 friend DAMON_API Response
send(Session
& /*session*/, const Request
&/* request*/);
32 friend DAMON_API
std::vector
< Response
> send(Session
& /*session*/, const std::vector
< Request
> & requests
);