• About TV's server
  • New in version 3.20
  • New in version 3.10
  • About the source code
  • About protocols/plugins
  • TV's server API
  • Protocol Initialisation
  • Protocol binding
  • Protocol Listening and handling
  • Protocol data storage
  • Control panel
  • Multi column list
  • Time and date
  • Http protocol functions
  • Unimplemented and/or replaced functions
  • SendFile function

    The SendFile function will send a file to the client. Use syntax SendFile32 in x86.

    Syntax

    int __stdcall SendFile(
    __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]sess [in]file [in]bufferSize [in]start [in]size [in]timeout [in]

    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