File data transfer—send_file() and accept_and_recv()

i5/OS™ sockets provide the send_file() and accept_and_recv() APIs that enable faster and easier file transfers over connected sockets.

These two APIs are especially useful for file-serving applications such as Hypertext Transfer Protocol (HTTP) servers.

The send_file() enables the sending of file data directly from a file system over a connected socket with a single API call.

The accept_and_recv() is a combination of three socket functions: accept(), getsockname(), and recv().

Related reference
Examples: Transfer file data using send_file() and accept_and_recv() APIs
Related information
send_file()
accept_and_recv()