MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / socket_close

Function socket_close

server/src/server/http_server.cpp:57–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static inline void sock_set_nonblock(int fd) { u_long m = 1; ioctlsocket(SOCK_FD(fd), FIONBIO, &m); }
56static inline void sock_set_block(int fd) { u_long m = 0; ioctlsocket(SOCK_FD(fd), FIONBIO, &m); }
57static inline void socket_close(int fd) { closesocket(SOCK_FD(fd)); }
58#define SETSOCKOPT_CAST (const char *)
59static inline const char* sock_strerror() {
60 static thread_local char buf[64];

Callers 6

broadcast_statusMethod · 0.85
broadcast_tokenMethod · 0.85
sse_heartbeatMethod · 0.85
shutdownMethod · 0.85
runMethod · 0.85
handle_clientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected