MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / stop

Method stop

extern/include/cpp-httplib/httplib.h:5095–5102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5093inline bool Server::is_running() const { return is_running_; }
5094
5095inline 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
5104inline bool Server::parse_request_line(const char *s, Request &req) {
5105 auto len = strlen(s);

Callers 2

runFunction · 0.45
clearTimeoutFunction · 0.45

Calls 2

shutdown_socketFunction · 0.85
close_socketFunction · 0.85

Tested by

no test coverage detected