Extend report()

ReportInfo to allow pass through from Source.
Also include peer credentials
This commit is contained in:
Michael Davidsaver
2021-06-29 19:45:31 -07:00
parent 99c1534dfa
commit 3145c010d2
8 changed files with 80 additions and 9 deletions
+14
View File
@@ -174,6 +174,20 @@ void ServerChannelControl::close()
});
}
void ServerChannelControl::_updateInfo(const std::shared_ptr<const ReportInfo>& info)
{
auto serv = server.lock();
if(!serv)
return;
serv->acceptor_loop.call([this, &info](){
auto ch = chan.lock();
if(!ch)
return;
ch->reportInfo = info;
});
}
void ServerConn::handle_SEARCH()
{
EvInBuf M(peerBE, segBuf.get(), 16);