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

Function shutdown_socket

examples/server/httplib.h:2633–2639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2631}
2632
2633inline int shutdown_socket(socket_t sock) {
2634#ifdef _WIN32
2635 return shutdown(sock, SD_BOTH);
2636#else
2637 return shutdown(sock, SHUT_RDWR);
2638#endif
2639}
2640
2641template <typename BindOrConnect>
2642socket_t create_socket(const std::string &host, const std::string &ip, int port,

Callers 8

stopMethod · 0.85
~ClientImplMethod · 0.85
shutdown_socketMethod · 0.85
send_Method · 0.85
process_requestMethod · 0.85
connect_with_proxyMethod · 0.85
initialize_sslMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected