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

Function read_socket

examples/server/httplib.h:2665–2675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2663}
2664
2665inline ssize_t read_socket(socket_t sock, void *ptr, size_t size, int flags) {
2666 return handle_EINTR([&]() {
2667 return recv(sock,
2668#ifdef _WIN32
2669 static_cast<char *>(ptr), static_cast<int>(size),
2670#else
2671 ptr, size,
2672#endif
2673 flags);
2674 });
2675}
2676
2677inline ssize_t send_socket(socket_t sock, const void *ptr, size_t size,
2678 int flags) {

Callers 2

is_socket_aliveFunction · 0.85
readMethod · 0.85

Calls 1

handle_EINTRFunction · 0.85

Tested by

no test coverage detected