Represents a request to get the peers of a download.
GetPeers(string gid, string? id = null)Returns an array of peer objects associated with the download denoted by gid. Each peer object contains details such as IP address, port, and speed information.
https://aria2.github.io/manual/en/html/aria2c.html#aria2.getPeers
gid (string): The GID of the download.
id (string (optional, default: null)): The tracking id for the request. If this is omitted it will be generated automatically.Returns:
A read-only list of Aria2Peer objects.
Throws:
Aria2Exception
Thrown when an aria2 error occurs.