SendFile32 function
The SendFile32 function will send a file to the client. Use syntax SendFile in x64.Syntax
int __stdcall SendFile32(
__in ProtocolSession *psess,
__in ClientSession *sess,
__in void *file,
__in int bufferSize,
__in long long *start,
__in long long *size,
__in int timeout
);
Parameters
psess [in] A pointer to a ProtocolSession structure. This is a session assigned to a protocol at the moment it's loaded into the memory.
sess [in] A pointer to a ClientSession structure. This is a session assigned to a new connection. This connection has been created by a type PT_RECEIVER protocol.
file [in] A pointer to a system specific filepointer.
Windows: A HANDLE created by the CreateFile API.
Linux: A file descriptor.
bufferSize [in] The size, in bytes, that the function is allowed to allocate to buffer the file in memory.
start [in] A pointer to a long long value with the start position, in bytes, from where the function should start sending the file.
size [in]timeout [in] The time in miliseconds that the client is allowed to block the connection. Set this parameter to zero for no timeout.
Return value
If no error occurs the function returns True (one). If the function fails it will return False (zero).
Requirements
Should be exported by | -
|
Minimum supported API | 1.00
|
Header | tvsserver_base.h
|
Library(x86) | tvs_server_http_protocol_x86.lib
|
Library(x64) | tvs_server_http_protocol_x64.lib
|
DLL(x86) | tvs_server_http_protocol_x86.DLL
|
DLL(x64) | tvs_server_http_protocol_x64.DLL
|