forked from premiere/premiere-libtorrent
fix typo in class name
This commit is contained in:
parent
86fd8c3048
commit
182c30f2d6
|
@ -40,16 +40,16 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
namespace libtorrent { namespace dht
|
namespace libtorrent { namespace dht
|
||||||
{
|
{
|
||||||
|
|
||||||
struct direct_trasversal : traversal_algorithm
|
struct direct_traversal : traversal_algorithm
|
||||||
{
|
{
|
||||||
direct_trasversal(node& node
|
direct_traversal(node& node
|
||||||
, node_id target
|
, node_id target
|
||||||
, boost::function<void(msg const&)> cb)
|
, boost::function<void(msg const&)> cb)
|
||||||
: traversal_algorithm(node, target)
|
: traversal_algorithm(node, target)
|
||||||
, m_cb(cb)
|
, m_cb(cb)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual char const* name() const { return "direct_trasversal"; }
|
virtual char const* name() const { return "direct_traversal"; }
|
||||||
|
|
||||||
void invoke_cb(msg const& m)
|
void invoke_cb(msg const& m)
|
||||||
{
|
{
|
||||||
|
@ -75,7 +75,7 @@ struct direct_observer : observer
|
||||||
virtual void reply(msg const& m)
|
virtual void reply(msg const& m)
|
||||||
{
|
{
|
||||||
flags |= flag_done;
|
flags |= flag_done;
|
||||||
static_cast<direct_trasversal*>(algorithm())->invoke_cb(m);
|
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void timeout()
|
virtual void timeout()
|
||||||
|
@ -86,12 +86,12 @@ struct direct_observer : observer
|
||||||
if (flags & flag_ipv6_address)
|
if (flags & flag_ipv6_address)
|
||||||
{
|
{
|
||||||
msg m(e, target_ep());
|
msg m(e, target_ep());
|
||||||
static_cast<direct_trasversal*>(algorithm())->invoke_cb(m);
|
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg m(e, target_ep());
|
msg m(e, target_ep());
|
||||||
static_cast<direct_trasversal*>(algorithm())->invoke_cb(m);
|
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -416,8 +416,8 @@ void node::direct_request(boost::asio::ip::udp::endpoint ep, entry& e
|
||||||
, boost::function<void(msg const&)> f)
|
, boost::function<void(msg const&)> f)
|
||||||
{
|
{
|
||||||
// not really a traversal
|
// not really a traversal
|
||||||
boost::intrusive_ptr<direct_trasversal> algo(
|
boost::intrusive_ptr<direct_traversal> algo(
|
||||||
new direct_trasversal(*this, (node_id::min)(), f));
|
new direct_traversal(*this, (node_id::min)(), f));
|
||||||
|
|
||||||
void* ptr = m_rpc.allocate_observer();
|
void* ptr = m_rpc.allocate_observer();
|
||||||
if (ptr == 0) return;
|
if (ptr == 0) return;
|
||||||
|
|
Loading…
Reference in New Issue