mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-09-13 14:52:14 +00:00
just comments
This commit is contained in:
parent
a28de30fce
commit
8f196639ae
@ -206,6 +206,7 @@ void node_impl::unreachable(udp::endpoint const& ep)
|
|||||||
m_rpc.unreachable(ep);
|
m_rpc.unreachable(ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// new message received from network
|
||||||
void node_impl::incoming(msg const& m)
|
void node_impl::incoming(msg const& m)
|
||||||
{
|
{
|
||||||
// is this a reply?
|
// is this a reply?
|
||||||
@ -225,12 +226,15 @@ void node_impl::incoming(msg const& m)
|
|||||||
case 'r':
|
case 'r':
|
||||||
{
|
{
|
||||||
node_id id;
|
node_id id;
|
||||||
|
// reply to our request?
|
||||||
|
// map transaction => observer, call o->reply, ret true if ok
|
||||||
if (m_rpc.incoming(m, &id))
|
if (m_rpc.incoming(m, &id))
|
||||||
refresh(id, boost::bind(&nop));
|
refresh(id, boost::bind(&nop));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'q':
|
case 'q':
|
||||||
{
|
{
|
||||||
|
// new request received
|
||||||
TORRENT_ASSERT(m.message.dict_find_string_value("z") == "q");
|
TORRENT_ASSERT(m.message.dict_find_string_value("z") == "q");
|
||||||
entry e;
|
entry e;
|
||||||
incoming_request(m, e);
|
incoming_request(m, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user