code: protected void init(peer_info p) {
          client = Vectors.byte_vector2utf8(p.get_client());
          totalDownload = p.getTotal_download();
          totalUpload = p.getTotal_upload();
          flags = p.get_flags();
          source = p.get_source();
          upSpeed = p.getUp_speed();
          downSpeed = p.getDown_speed();
          connectionType = ConnectionType.fromSwig(p.getConnection_type());
          progress = p.getProgress();
          progressPpm = p.getProgress_ppm();
          ip = new TcpEndpoint(p.getIp()).toString();
      }
docs: NOTE: use this with care and only if necessary.
  
  @param p the native object