~ubuntu-branches/ubuntu/saucy/resiprocate/saucy-proposed

« back to all changes in this revision

Viewing changes to p2p/P2PStack.hxx

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2012-05-17 19:29:59 UTC
  • Revision ID: package-import@ubuntu.com-20120517192959-vv00m77isztdy64q
Tags: upstream-1.8.2
ImportĀ upstreamĀ versionĀ 1.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined(P2PStack_hxx)
 
2
#define P2PStack_hxx
 
3
 
 
4
#include "p2p/Profile.hxx"
 
5
#include "p2p/Dispatcher.hxx"
 
6
#include "p2p/ChordTopology.hxx"
 
7
#include "p2p/SelectTransporter.hxx"
 
8
#include "p2p/ForwardingLayer.hxx"
 
9
 
 
10
namespace p2p
 
11
{
 
12
 
 
13
class P2PStack
 
14
{
 
15
   public:
 
16
      P2PStack(const Profile& profile);
 
17
 
 
18
      void run(); // this never returns 
 
19
      void process(int waitTimeMS); // run a time slice and return 
 
20
      
 
21
      void listenOn(int port);
 
22
      void join();
 
23
 
 
24
      ResourceId getIdFromResourceName( const resip::Data& resourceName );
 
25
      
 
26
      
 
27
   private:
 
28
      Profile mProfile;
 
29
 
 
30
      Dispatcher mDispatcher;
 
31
      SelectTransporter mTransporter;
 
32
      ChordTopology mChord; // TODO - this needs to be changed to a Topology
 
33
                            // object 
 
34
      ForwardingLayer mForwarder;
 
35
};
 
36
 
 
37
   
 
38
}
 
39
 
 
40
#endif