26 |
|
public: |
27 |
|
BeepRemote bmp; |
28 |
|
private: |
29 |
< |
_H<api::Thread> block; |
30 |
< |
_H<api::Process> process; |
31 |
< |
mutable _H<dbi::Connection> connection; |
29 |
> |
_P<api::Thread> block; |
30 |
> |
_P<api::Process> process; |
31 |
> |
mutable _P<dbi::Connection> connection; |
32 |
|
const ext::RedBlackSet<cse::String>& extensions; |
33 |
< |
ext::RedBlackMap<cse::String, _H<Share> > sharesByPath; |
34 |
< |
ext::RedBlackMap<api::Address, ext::RedBlackMap<cse::String, _H<Share> > > sharesByHost; |
33 |
> |
mta::ReaderWriterLock sharesLock; |
34 |
> |
ext::RedBlackMap<cse::String, _P<Share> > sharesByPath; |
35 |
> |
ext::RedBlackMap<api::Address, ext::RedBlackMap<cse::String, _P<Share> > > sharesByHost; |
36 |
|
void Media(ios::Reader& media, const api::Address& host = api::InternetAddress()); |
37 |
< |
void Media(const _H<xml::Node>& folder, const api::Path& path, const api::Path& root); |
37 |
> |
void Media(const _P<xml::Node>& folder, const api::Path& path, const api::Path& root); |
38 |
|
int Destroy() { return process->Join(); } |
39 |
|
protected: |
40 |
|
virtual void Process(const net::Http::Request& request, net::Http::Response& response); |