MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / stop

Method stop

dependencies/httplib/httplib.h:4958–4965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4956inline bool Server::is_running() const { return is_running_; }
4957
4958inline 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
4967inline bool Server::parse_request_line(const char *s, Request &req) {
4968 auto len = strlen(s);

Callers 2

hid_hw_startFunction · 0.45
hid_hw_stopFunction · 0.45

Calls 2

shutdown_socketFunction · 0.85
close_socketFunction · 0.85

Tested by

no test coverage detected