Net::BitTorrent's new callback system differs greatly from the previous version. When a callback is set, the return value is an arrayref containing the basic information to keep the callback relevent. The only strong reference to this 'quest' or 'callback' is the value returned so, for example, to stop searching for peers, simply destroy this quest in your code (end the scope, setting the variable used to store it to
Sanko Robinson <email@example.com> - http://sankorobinson.com/
CPAN ID: SANKO
Copyright (C) 2008-2010 by Sanko Robinson <firstname.lastname@example.org>
This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.
Neither this module nor the Author is affiliated with BitTorrent, Inc.