Show
Ignore:
Timestamp:
05/05/08 15:16:26 (4 years ago)
Author:
rakshasa
Message:

* Initial seeding support added. Patch by Josef Drexler.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/torrent/peer/peer_info.h

    r1013 r1058  
    4848  friend class Handshake; 
    4949  friend class HandshakeManager; 
     50  friend class InitialSeeding; 
    5051  friend class PeerList; 
    5152  friend class ProtocolExtension; 
     
    5455  static const int flag_incoming  = (1 << 1); 
    5556  static const int flag_handshake = (1 << 2); 
     57  static const int flag_blocked   = (1 << 3);   // For initial seeding. 
     58  static const int flag_restart   = (1 << 4); 
    5659 
    5760  PeerInfo(const sockaddr* address); 
     
    6164  bool                is_incoming() const                   { return m_flags & flag_incoming; } 
    6265  bool                is_handshake() const                  { return m_flags & flag_handshake; } 
     66  bool                is_blocked() const                    { return m_flags & flag_blocked; } 
     67  bool                is_restart() const                    { return m_flags & flag_restart; } 
    6368 
    6469  int                 flags() const                         { return m_flags; }