omashpolskiy.bt-core.1.4.1.source-code.tracker_response.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bt-core Show documentation
Show all versions of bt-core Show documentation
BitTorrent Client Library (Core)
--- # schema of a tracker response document
- model:
type: dictionary
exclusives:
# TODO: some trackers return failure reason together with interval and peers,
# which causes the validation to fail -- need to do something about it
- "failure reason"
- ["warning message", interval, "min interval", "tracker id", complete, incomplete, peers]
entries:
- {key: "failure reason", type: string}
- {key: "warning message", type: string, required: false}
- {key: interval, type: integer}
- {key: "min interval", type: integer, required: false}
- {key: "tracker id", type: string, required: false}
- {key: complete, type: integer, required: false}
- {key: incomplete, type: integer, required: false}
- {key: peers, type: string}
- {key: crypto_flags, type: string, required: false}