| 4956 | inline bool Server::is_running() const { return is_running_; } |
| 4957 | |
| 4958 | inline void Server::stop() { |
| 4959 | if (is_running_) { |
| 4960 | assert(svr_sock_ != INVALID_SOCKET); |
| 4961 | std::atomic<socket_t> sock(svr_sock_.exchange(INVALID_SOCKET)); |
| 4962 | detail::shutdown_socket(sock); |
| 4963 | detail::close_socket(sock); |
| 4964 | } |
| 4965 | } |
| 4966 | |
| 4967 | inline bool Server::parse_request_line(const char *s, Request &req) { |
| 4968 | auto len = strlen(s); |
no test coverage detected