diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dlt-system.conf.5 | 6 | ||||
-rwxr-xr-x | doc/filetransfer_mainpage.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/dlt-system.conf.5 b/doc/dlt-system.conf.5 index d09a9c1..a3b2476 100644 --- a/doc/dlt-system.conf.5 +++ b/doc/dlt-system.conf.5 @@ -74,6 +74,12 @@ This value defines the amount of time after which a sent file is deleted and the next file is strated to be transmitted. .IP Default: 10 +.TP +.B FiletransferTimeoutBetweenLogs +This value defines the amount of time to wait between two file transfer +logs of a single file. +.IP +Default: 10 .SH LOG FILES OPTIONS .TP .B LogFileEnable diff --git a/doc/filetransfer_mainpage.h b/doc/filetransfer_mainpage.h index 11b1c1e..d1a2f6b 100755 --- a/doc/filetransfer_mainpage.h +++ b/doc/filetransfer_mainpage.h @@ -114,6 +114,8 @@ Here is the content of the information package: #define ERROR_FILE_HEAD -400 //! Error code for dlt_user_log_file_data #define ERROR_FILE_DATA -500 +//! Error code for dlt_user_log_file_data +#define DLT_FILETRANSFER_ERROR_FILE_DATA_USER_BUFFER_FAILED -501 //! Error code for dlt_user_log_file_end #define ERROR_FILE_END -600 //! Error code for dlt_user_log_file_infoAbout @@ -180,6 +182,10 @@ The method needs the following arguments: The order of the packages is to send at first the header, then one or more data packages (depends on the filesize) and in the end the end package. The advantage of this method is, that you must not handle the package ordering by your own. +Within dlt_user_log_file_complete the free space of the user buffer will be checked. If the free space of the user buffer < 50% then the +actual package won't be transferred and a timeout will be executed. + +If the daemon crashes and the user buffer is full -> the automatic method is in an endless loop. \subsection Manual Manual Manual starting filetransfer with the following commands: @@ -191,6 +197,7 @@ This ordering is very important, so that you can save the transferred files to h The advantage of using several steps to transfer files by your own is, that you are very flexible to integrate the filetransfer in your code. +An other difference to the automatic method is, that only a timeout will be done. There is no check of the user buffer. \subsection Important Important for integration You should care about blocking the main program when you intergrate filetransfer in your code. |