~ubuntu-branches/debian/experimental/libtorrent/experimental

« back to all changes in this revision

Viewing changes to src/download/connection_list.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-03-31 10:31:05 UTC
  • mto: (4.1.4 gutsy) (6.2.1 squeeze) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20070331103105-jzpp1rml6ud0ff75
Tags: upstream-0.11.4
ImportĀ upstreamĀ versionĀ 0.11.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
class PeerConnectionBase;
51
51
class PeerInfo;
52
52
class SocketFd;
 
53
class EncryptionInfo;
53
54
 
54
55
class ConnectionList : private rak::unordered_vector<PeerConnectionBase*> {
55
56
public:
59
60
 
60
61
  typedef rak::mem_fun1<DownloadWrapper, void, PeerConnectionBase*> slot_peer_type;
61
62
 
62
 
  typedef PeerConnectionBase* (*SlotNewConnection)();
 
63
  typedef PeerConnectionBase* (*SlotNewConnection)(bool encrypted);
63
64
 
64
65
  using base_type::value_type;
65
66
  using base_type::reference;
92
93
  // responsible for cleaning up 'fd'.
93
94
  //
94
95
  // Clean this up, don't use this many arguments.
95
 
  PeerConnectionBase* insert(PeerInfo* p, const SocketFd& fd, Bitfield* bitfield);
 
96
  PeerConnectionBase* insert(PeerInfo* p, const SocketFd& fd, Bitfield* bitfield, EncryptionInfo* encryptionInfo);
96
97
 
97
98
  iterator            erase(iterator pos, int flags);
98
99
  void                erase(PeerInfo* peerInfo, int flags);
113
114
  // 'l' is sorted and unique.
114
115
  void                set_difference(AddressList* l);
115
116
 
116
 
  void                send_finished_chunk(uint32_t index);
117
 
 
118
117
  // When a peer is connected it should be removed from the list of
119
118
  // available peers.
120
119
  void                slot_connected(slot_peer_type s)                 { m_slotConnected = s; }