MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / close_socket

Function close_socket

examples/server/httplib.h:2647–2653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2645 size_ = 0;
2646}
2647inline int close_socket(socket_t sock) {
2648#ifdef _WIN32
2649 return closesocket(sock);
2650#else
2651 return close(sock);
2652#endif
2653}
2654
2655template <typename T> inline ssize_t handle_EINTR(T fn) {
2656 ssize_t res = 0;

Callers 10

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

Calls

no outgoing calls

Tested by

no test coverage detected