Skip to content

Migrating custom storage to RC_2 #6118

@elgatito

Description

@elgatito

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:

  1. Method to access disk_thread from session.
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions