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