Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AnnounceInfo

import type { AnnounceInfo } from "https://raw.githubusercontent.com/rclarey/torrent/master/mod.ts";
interface AnnounceInfo {
compact?: CompactValue;
downloaded: number;
infoHash: Uint8Array;
ip: string;
key?: Uint8Array;
left: number;
numWant?: number;
peerId: Uint8Array;
port: number;
uploaded: number;
}

§Properties

§

Indicates whether or not the client accepts a compact response

§
downloaded: number
[src]

Number of bytes downloaded

§

Indicates the purpose of the request

§
infoHash: Uint8Array
[src]

SHA1 hash of the bencoded info dictionary

§
ip: string
[src]

The IP address at which the client is listening

§
key?: Uint8Array
[src]

An addition ID meant to allow a client to prove their identity should their IP address change

§
left: number
[src]

Number of bytes the client still has to download

§
numWant?: number
[src]

Number of peers that the client would like to receive from the tracker

§
peerId: Uint8Array
[src]

Self-selected ID

§
port: number
[src]

The port at which the client is listening

§
uploaded: number
[src]

Number of bytes uploaded