#ifndef INET_HH #define INET_HH #include "unique_fd.hh" #include #include #include class Logger; namespace inet { unique_fd accept(Logger* logger, int fd, bool make_nonblock = false); bool bind_and_listen(Logger* logger, std::string const& addr, std::string const& port, std::vector* out); } // namespace inet namespace unix { unique_fd bind_and_listen(Logger* logger, std::string_view path); } // namespace unix #endif // INET_HH