  address.sin_addr.s_addr = INADDR_ANY;
  address.sin_port = htons(port);
  int bind_got = bind(sock, (const struct sockaddr*)&address, sizeof(address));
  if (0 != bind_got) {
    lll("got %x from bind, expected 0\n", bind_got);
    std::exit(-1);
  }

  int listen_got = listen(sock, 1);