| 5093 | inline bool Server::is_running() const { return is_running_; } |
| 5094 | |
| 5095 | inline void Server::stop() { |
| 5096 | if (is_running_) { |
| 5097 | assert(svr_sock_ != INVALID_SOCKET); |
| 5098 | std::atomic<socket_t> sock(svr_sock_.exchange(INVALID_SOCKET)); |
| 5099 | detail::shutdown_socket(sock); |
| 5100 | detail::close_socket(sock); |
| 5101 | } |
| 5102 | } |
| 5103 | |
| 5104 | inline bool Server::parse_request_line(const char *s, Request &req) { |
| 5105 | auto len = strlen(s); |
no test coverage detected