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

Function send_socket

examples/server/httplib.h:2378–2389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2376}
2377
2378inline ssize_t send_socket(socket_t sock, const void *ptr, size_t size,
2379 int flags) {
2380 return handle_EINTR([&]() {
2381 return send(sock,
2382#ifdef _WIN32
2383 static_cast<const char *>(ptr), static_cast<int>(size),
2384#else
2385 ptr, size,
2386#endif
2387 flags);
2388 });
2389}
2390
2391inline ssize_t select_read(socket_t sock, time_t sec, time_t usec) {
2392#ifdef CPPHTTPLIB_USE_POLL

Callers 1

writeMethod · 0.85

Calls 1

handle_EINTRFunction · 0.85

Tested by

no test coverage detected