~ubuntu-branches/ubuntu/trusty/libktorrent/trusty-proposed

« back to all changes in this revision

Viewing changes to src/dht/dht.h

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-26 00:33:38 UTC
  • mfrom: (5.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110526003338-2r4zwyzn8bovsxay
Tags: 1.1.1-2
Release to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <util/timer.h>
28
28
#include "key.h"
29
29
#include "dhtbase.h"
 
30
#include "rpcmsg.h"
30
31
 
31
32
namespace bt
32
33
{
42
43
{
43
44
        class Node;
44
45
        class RPCServer;
45
 
        class PingReq;
46
 
        class FindNodeReq;
47
 
        class GetPeersReq;
48
 
        class MsgBase;
49
 
        class ErrMsg;
50
 
        class MsgBase;
51
 
        class AnnounceReq;
52
46
        class Database;
53
47
        class TaskManager;
54
48
        class Task;
66
60
                DHT();
67
61
                virtual ~DHT();
68
62
                
69
 
                void ping(PingReq* r);
70
 
                void findNode(FindNodeReq* r);
71
 
                void response(MsgBase* r);
72
 
                void getPeers(GetPeersReq* r);
73
 
                void announce(AnnounceReq* r);
74
 
                void error(ErrMsg* r);
75
 
                void timeout(const MsgBase* r);
 
63
                void ping(PingReq::Ptr r);
 
64
                void findNode(FindNodeReq::Ptr r);
 
65
                void response(MsgBase::Ptr r);
 
66
                void getPeers(GetPeersReq::Ptr r);
 
67
                void announce(AnnounceReq::Ptr r);
 
68
                void error(ErrMsg::Ptr r);
 
69
                void timeout(MsgBase::Ptr r);
76
70
                
77
71
                /**
78
72
                 * A Peer has received a PORT message, and uses this function to alert the DHT of it.