开发者

Exit from polling on avahi?

开发者 https://www.devze.com 2022-12-09 12:32 出处:网络
I\'ve read the example code 开发者_StackOverflow中文版but I can\'t seem to find the exit condition(s) for the threaded poll.

I've read the example code 开发者_StackOverflow中文版but I can't seem to find the exit condition(s) for the threaded poll.

Any clues?


It looks like the threaded loop will be running as long as you don't call: avahi_threaded_poll_stop(threaded_poll) from the main loop (or ..._quit from inside the helper thread) . You may want to do so when the client callback returns AVAHI_CLIENT_FAILURE. (see client exemple)

Is that why you asked?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号