#include <sys/types.h> #include <sys/socket.h> int send_file64(int *socket_descriptor, struct sf_parms64 *sf_struct, int flags)
The send_file64() function is used to send the contents of an open file over an existing socket connection.
The send_file64() API is a combination of the IFS read() and the sockets send() and close() APIs. Socket applications that transmit a file over a socket connection can, under certain circumstances, obtain improved performance by using send_file64().
send_file64() is enabled for large files. It is capable of operating on files larger than 2 GB minus 1 byte. For additional information on the parameters, authorities required, return values, error conditions, error messages, and other usage notes, see send_file()--Send a File over a Socket Connection.
The structure pointed to by the sf_struct parameter is defined in <sys/socket.h>.
struct sf_parms64 { void *header_data; size_t header_length; int file_descriptor; unsigned long long file_size; long long file_offset; long long file_bytes; void *trailer_data; size_t trailer_length; unsigned long long bytes_sent; }
No authorization is required.
Top | UNIX-Type APIs | APIs by category |