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

Function read_socket

examples/server/httplib.h:2366–2376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2364}
2365
2366inline ssize_t read_socket(socket_t sock, void *ptr, size_t size, int flags) {
2367 return handle_EINTR([&]() {
2368 return recv(sock,
2369#ifdef _WIN32
2370 static_cast<char *>(ptr), static_cast<int>(size),
2371#else
2372 ptr, size,
2373#endif
2374 flags);
2375 });
2376}
2377
2378inline ssize_t send_socket(socket_t sock, const void *ptr, size_t size,
2379 int flags) {

Callers 2

is_socket_aliveFunction · 0.85
readMethod · 0.85

Calls 1

handle_EINTRFunction · 0.85

Tested by

no test coverage detected