MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / client_callback

Function client_callback

src/platform/linux/publish.cpp:383–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 }
382
383 void client_callback(avahi::Client *c, avahi::ClientState state, void *) {
384 switch (state) {
385 case avahi::CLIENT_S_RUNNING:
386 create_services(c);
387 break;
388 case avahi::CLIENT_FAILURE:
389 BOOST_LOG(error) << "Client failure: "sv << avahi::strerror(avahi::client_errno(c));
390 avahi::simple_poll_quit(poll.get());
391 break;
392 case avahi::CLIENT_S_COLLISION:
393 case avahi::CLIENT_S_REGISTERING:
394 if (group) {
395 avahi::entry_group_reset(group);
396 }
397 break;
398 case avahi::CLIENT_CONNECTING:;
399 }
400 }
401
402 class deinit_t: public ::platf::deinit_t {
403 public:

Callers

nothing calls this directly

Calls 2

create_servicesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected