MCPcopy Create free account
hub / github.com/apache/kvrocks / SockSendFile

Function SockSendFile

src/common/io_util.cc:275–275  ·  view source on GitHub ↗

Send file by sendfile actually according to different operation systems, please note that, the out socket fd should be in blocking mode.

Source from the content-addressed store, hash-verified

273// Send file by sendfile actually according to different operation systems,
274// please note that, the out socket fd should be in blocking mode.
275Status SockSendFile(int out_fd, int in_fd, size_t size) { return SockSendFileImpl<SendFileImpl>(out_fd, in_fd, size); }
276
277Status SockSendFile(int out_fd, int in_fd, size_t size, [[maybe_unused]] ssl_st *ssl) {
278#ifdef ENABLE_OPENSSL

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected