MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / stop

Method stop

examples/server/httplib.h:5360–5367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5358}
5359
5360inline 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
5369inline bool Server::parse_request_line(const char *s, Request &req) {
5370 auto len = strlen(s);

Callers

nothing calls this directly

Calls 2

shutdown_socketFunction · 0.85
close_socketFunction · 0.85

Tested by

no test coverage detected