bool Server::listen(const std::string& host, uint16_t port,
const std::string& cert, const std::string& key,
const std::string& alpn) {
if (!impl_->start(host, port, cert, key, alpn)) return false;
printf("[http3] listening on :%u alpn=%s\n", port, alpn.c_str()); // line 657, printf called regardless of log level
while (impl_->running) {
#ifdef _WIN32
Sleep(200);
#else
usleep(200'000);
#endif
}
return true;
}