Is there any way of reading/writing the Upload/Download Queues from within Javascript? (eg: Synchronet C variables: batdn_total, batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).
I am trying to customize my own batch
file menu but it looks as though the queue is only stored in memory until the download is initiated.
I am currently using the bbs.batch_add_list() command to add files to the download queue but it searches each file area for the filenames provided and I can forsee an issue if there are more than 1 file with the same name in different areas. A Javascript command straight to the C Source function addotbatdl() would be great as it checks all the user limits, requirements, etc before adding the file to the queue without searching the file areas.
Is there any way of reading/writing the Upload/Download Queues from
within Javascript? (eg: Synchronet C variables: batdn_total,
batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).
Sorry, they are not.
I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an argument and I don't have any JS-methods to create or operate on file_t's. So it's a little more involved than just putting a JS wrapper around addtobatdl().
Re: RE: Access to the Upload/Download Batch List from Javascript
By: Digital Man to High Spirit on Fri Jan 05 2018 10:58 am
Is there any way of reading/writing the Upload/Download Queues from
within Javascript? (eg: Synchronet C variables: batdn_total,
batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).
Sorry, they are not.
Any chance they could be accessable in the future?
I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an argument and I don't have any JS-methods to create or operate on file_t's. So it's a little more involved than just putting a JS wrapper around addtobatdl().
Sounds good. I will work around it for the time being. :)
Maybe. I the batch management via JS a lot of thought.
Re: RE: Access to the Upload/Download Batch List from Javascript
By: Digital Man to High Spirit on Sat Jan 06 2018 03:10 pm
Maybe. I the batch management via JS a lot of thought.
Understood. ;)
Having a Javascript engine in Synchronet is amazing to have. Bringing new technology (Javascript) to the old technology (BBS's). I see things moving over to JS (BBSLIST) and hope things continue in that direction in the future. Would be nice to have everything accessable via JS, but I know it takes time, patience and a reason with a need to move it over.
Sysop: | Kurt Hamm |
---|---|
Location: | Columbia, SC |
Users: | 8 |
Nodes: | 20 (0 / 20) |
Uptime: | 134:42:26 |
Calls: | 2,804 |
Calls today: | 1 |
Files: | 64 |
Messages: | 854,503 |