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

Function close_socket

examples/server/httplib.h:2348–2354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2346}
2347
2348inline int close_socket(socket_t sock) {
2349#ifdef _WIN32
2350 return closesocket(sock);
2351#else
2352 return close(sock);
2353#endif
2354}
2355
2356template <typename T> inline ssize_t handle_EINTR(T fn) {
2357 ssize_t res = false;

Callers 10

create_socketFunction · 0.85
stopMethod · 0.85
httplib.hFile · 0.85
~ClientImplMethod · 0.85
close_socketMethod · 0.85
send_Method · 0.85
process_requestMethod · 0.85
connect_with_proxyMethod · 0.85
initialize_sslMethod · 0.85

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected