Changeset 1058 for trunk/libtorrent/src/torrent/peer/peer_info.h
- Timestamp:
- 05/05/08 15:16:26 (4 years ago)
- Files:
-
- 1 modified
-
trunk/libtorrent/src/torrent/peer/peer_info.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtorrent/src/torrent/peer/peer_info.h
r1013 r1058 48 48 friend class Handshake; 49 49 friend class HandshakeManager; 50 friend class InitialSeeding; 50 51 friend class PeerList; 51 52 friend class ProtocolExtension; … … 54 55 static const int flag_incoming = (1 << 1); 55 56 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); 56 59 57 60 PeerInfo(const sockaddr* address); … … 61 64 bool is_incoming() const { return m_flags & flag_incoming; } 62 65 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; } 63 68 64 69 int flags() const { return m_flags; }
