[Libtorrent-devel] some questions about the patches (the fixing of it)

Jari Petter Sundell jaris at student.matnat.uio.no
Tue May 10 19:30:31 UTC 2005


On Tue, 10 May 2005, luc at nepweb.net wrote:

> i understand i shouldn't pass a string to a core::manager function, but i
> couldn't find the function in sigc++ which could convert it for me in the
> commandline... if you could give that to me??? plz ???

There isn't. Though you should look at settings_loader.cc and
main.cc:parse_options(...) for ideas on how to implement it. Though i
should propably mention that a patch that adds this in a hack'y way will
not be commited. Setting the options directly in core::Manager isn't a
very clean way of implementing this.

> about the iterating only over the visible downloads... how do i get all
> downloads then (with which funtion). i couldn't find another (better)
> function which did it...

m_downloadList is a stl container. Iterate over all the element in it.
Being familiar with STL is needed to work on this client. In the library
and client i'm using a modern C++ programming paradigm, which relies
heavily on generic algorithms, containers and templates.

Rakshasa

Furu-Furu-Furu Moon!


More information about the Libtorrent-devel mailing list