TcpConnectionState.sendFile

SendResult sendFile(HANDLE fileHandle, ulong offset, size_t count) @trusted nothrow

Send a file over the connection using zero-copy TransmitFile.

Parameters

fileHandleWin32 file handle. Ownership transfers to the connection.
offsetByte offset to start sending from.
countNumber of bytes to send (0 = entire file from offset).

Returns

SendResult indicating success or error.