code: public List<PeerInfo> peerInfo() {
          if (!th.is_valid()) {
              return new ArrayList<>();
          }
  
          peer_info_vector v = new peer_info_vector();
          th.get_peer_info(v);
  
          int size = (int) v.size();
          ArrayList<PeerInfo> l = new ArrayList<>(size);
          for (int i = 0; i < size; i++) {
              l.add(new PeerInfo(v.get(i)));
          }
  
          return l;
      }
docs: Returns a list filled with one entry for each peer connected to this
  torrent, given the handle is valid. If the handle is invalid, it will
  return an empty list.
  <p>
  Each entry in the vector contains information about that particular peer.
  
  @return the list with the peers information
  @see PeerInfo