| 5358 | } |
| 5359 | |
| 5360 | inline void Server::stop() { |
| 5361 | if (is_running_) { |
| 5362 | assert(svr_sock_ != INVALID_SOCKET); |
| 5363 | std::atomic<socket_t> sock(svr_sock_.exchange(INVALID_SOCKET)); |
| 5364 | detail::shutdown_socket(sock); |
| 5365 | detail::close_socket(sock); |
| 5366 | } |
| 5367 | } |
| 5368 | |
| 5369 | inline bool Server::parse_request_line(const char *s, Request &req) { |
| 5370 | auto len = strlen(s); |
nothing calls this directly
no test coverage detected