mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
455 B
C++
23 lines
455 B
C++
#include <tooling/router_event.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
|
|
RouterEvent::RouterEvent(std::string eventType, llarp::RouterID routerID, bool triggered)
|
|
: eventType(eventType), routerID(routerID), triggered(triggered)
|
|
{
|
|
}
|
|
|
|
std::string
|
|
RouterEvent::ToString() const
|
|
{
|
|
std::string result;
|
|
result += eventType;
|
|
result += " [";
|
|
result += routerID.ShortString();
|
|
result += "] -- ";
|
|
return result;
|
|
}
|
|
|
|
} // namespace tooling
|