ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/DecentralizedMedia.hpp
Revision: 474
Committed: 2005-06-08T12:45:23-07:00 (20 years ago) by douglas
File size: 859 byte(s)
Log Message:
Getting somewhere.

File Contents

# Content
1 // Decentralized Media
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _DecentralizedMedia_hpp_
8 #define _DecentralizedMedia_hpp_
9
10 #include <menes/platform.hpp>
11
12 #ifdef MENES_PRAGMA_ONCE
13 #pragma once
14 #endif
15
16 #include <menes-api/process.hpp>
17 #include <menes-waf/server.hpp>
18
19 #include "BeepRemote.hpp"
20
21 class DecentralizedMedia : public waf::Server
22 {
23 public:
24 BeepRemote bmp;
25 private:
26 _H<api::Thread> block;
27 _H<api::Process> process;
28 const _L<ext::String>& extensions;
29 ext::RedBlackMap<ext::String, ext::String> shares;
30 int Destroy() { return process->Join(); }
31 protected:
32 virtual void Process(const net::Http::Request& request, net::Http::Response& response);
33 public:
34 ext::RedBlackSet<ext::String> media;
35 DecentralizedMedia(const _L<ext::String>& extensions, const _L<ext::String>& locals);
36 virtual ~DecentralizedMedia();
37 };
38
39 #endif//_DecentralizedMedia_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id