tribler.core.content_discovery.payload
Classes
A request to be sent the health information of torrents. |
|
A payload for torrent health information. |
|
A payload for a list of torrent health information. |
|
A request for the Tribler version and Operating System of a peer. |
|
A response to a request for Tribler version and OS. |
|
A payload to sent SQL queries to other peers. |
|
A response to a select request. |
Module Contents
- class tribler.core.content_discovery.payload.HealthRequestPayload
Bases:
ipv8.messaging.lazy_payload.VariablePayloadA request to be sent the health information of torrents.
- msg_id = 3
- format_list = ['B']
- names = ['request_type']
- class tribler.core.content_discovery.payload.HealthFormat
Bases:
ipv8.messaging.lazy_payload.VariablePayloadA payload for torrent health information.
- format_list = ['20s', 'I', 'I', 'Q', 'varlenHutf8']
- names = ['infohash', 'seeders', 'leechers', 'timestamp', 'tracker']
- class tribler.core.content_discovery.payload.HealthPayload
Bases:
ipv8.messaging.lazy_payload.VariablePayloadA payload for a list of torrent health information.
- msg_id = 4
- format_list
- names = ['response_type', 'torrents', 'extra_bytes']
- torrents: list[HealthFormat]
- classmethod create(request_type: int, health_infos: list[tribler.core.torrent_checker.healthdataclasses.HealthInfo]) Self
Create a payload from the given list.
- get_health_info() list[tribler.core.torrent_checker.healthdataclasses.HealthInfo]
Gets the list of HealthInfo objects.
- class tribler.core.content_discovery.payload.VersionRequest
Bases:
ipv8.messaging.lazy_payload.VariablePayloadA request for the Tribler version and Operating System of a peer.
- msg_id = 101
- class tribler.core.content_discovery.payload.VersionResponse
Bases:
ipv8.messaging.lazy_payload.VariablePayloadA response to a request for Tribler version and OS.
- msg_id = 102
- format_list = ['varlenI', 'varlenI']
- names = ['version', 'platform']