code: synchronized OtpErlangPid[] localPids() {
          OtpErlangPid[] ret = null;
          if (count != 0) {
              ret = new OtpErlangPid[count];
              for (int i = 0; i < count; i++) {
                  ret[i] = links[i].local();
              }
          }
          return ret;
      }
docs: /* all local pids get notified about broken connection