-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Hello Arvid,
While trying to migrate to move the code from RC_1_2 to RC_2_0, I've found that I miss a way few items, used from RC_1_2:
- Method to access disk_thread from session.
- Way to easily readv/writev using storage methods.
Regarding 1:
I have custom storage interface, but it is needed to be able to use both default and custom interface, depending of user's selection. That was previously easily made by add_torrent_params
field.
Now I will probably do a custom lt::disk_interface
, which will internally make default_disk_io_constructor
, to delegate work with non-custom storages.
Regarding 2:
I have used direct readv calls to storage_interface
to properly read downloaded date with a buffer.
Is there an easy example of to calling async_readv
to fill in the buffer?