4 #include <g3log/g3log.hpp> 5 #include <g3log/logworker.hpp> 10 int main(
int argc,
const char* argv[])
13 auto worker = g3::LogWorker::createLogWorker();
14 auto buffer = std::make_unique<swarmio::tool::LogBuffer>();
15 auto buffer_ptr = buffer.get();
17 initializeLogging(worker.get());
22 char* hostname = zsys_hostname();
30 std::cout <<
"Selected interface: " << argv[1] << std::endl;
34 std::cout <<
"Local node started with UUID: " << endpoint.
GetUUID() << std::endl;
virtual void Stop() override
Send a termination signal and wait until the endpoint finished processing messages.
virtual const std::string & GetUUID() override
Get the UUID of the local node.
void SetInterface(const char *ifname)
Set the network interface to bind to.
int main(int argc, const char *argv[])
An Endpoint implementation using the Zyre protocol.
virtual void Start() override
Start the background thread, announce the Zyre node and start processing messages.