Commit Graph

107 Commits

Author SHA1 Message Date
Jonathan Bagg
d203025409 AvahiCore - house keeping 2022-10-02 21:34:16 -04:00
Jonathan Bagg
38d236dee1 Fix Android api 30 issue
Google disabled bind() to a netlink socket in api 30.  This change disables
the netlink socket used in avahi-core on Android which means there is no
async network interface info.  When the apps starts, a list of interfaces
is gotten with getifaddrs() and avahi uses this list to monitor.  Avahi
does not monitor while the app sleeps and deletes the monitor.
2022-10-02 21:34:16 -04:00
morixhub
74402496b0 Fixed handling of TXT records longer than 127 bytes 2022-04-08 21:29:56 -04:00
David Kahles (KDV)
31fc8e5c72 Improve finding avahi-client
Unfortunately, there is no FindAvahi.cmake file available. Instead use
find_library and find_path to find the libavahi-client.so and
avahi-client/client.h files. This improves logging if the files are not found
and allows to use CMAKE_FIND_ROOT_PATH to alter the search paths for
crossplatform builds.
2022-04-08 21:19:08 -04:00
David Kahles (KDV)
58e8f6ee1c AvahiCode + Bonjour: use correct datatype for pos
ssize_t is not available on windows (at least not with msvc2019). Use
int as QByteArray::indexOf is defined with int return type.
2022-04-08 21:16:16 -04:00
Jonathan Bagg
c48fc95cf1 AvahiCore + Bonjour - pos should be signed. 2022-02-17 20:45:29 -05:00
Jonathan Bagg
334ca21012 AvahiClient - Fix parsing of TXT records if value contains '='
TXT record values can also contain equals signs. The current
implementation would consider any record where the value contains an
equals sign as an empty record.
2022-02-17 20:41:07 -05:00
Florian Meinicke
01f35f27a3 Fix parsing of TXT records if value contains '='
TXT record values can also contain equals signs. The current
implementation would consider any record where the value contains an
equals sign as an empty record.
2022-02-17 20:36:59 -05:00
Michael Zanetti
7fadf1cff5 add support for compiling for ubuntu touch
with builtin avahi

Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2021-09-17 20:30:36 -04:00
Jonathan Bagg
2fb144933e Add clang-format config 2021-09-17 20:18:09 -04:00
Jonathan Bagg
9d1293191d Added iOS 14 note to README.md 2021-09-17 20:17:18 -04:00
jbagg
df4a1581ab Merge pull request #39 from rumengb/master
fix for gcc compilation on windows
2020-10-29 21:32:35 -04:00
jbagg
4646051dab Merge pull request #43 from FMeinicke/fix-cmake
Add proper CMake config file to install
2020-10-29 21:30:22 -04:00
Florian Meinicke
755854a87f Add missing INSTALL_CMAKEDIR variable 2020-10-29 08:39:56 +01:00
Florian Meinicke
ab274491fc Add proper CMake config file to install
so that QtZeroConf can be easily integrated with find_package
2020-10-29 07:52:08 +01:00
jbagg
c80376bd86 Merge pull request #41 from FMeinicke/cmake
Add CMake support
2020-10-04 22:32:31 -04:00
jbagg
1995137301 Merge pull request #42 from FMeinicke/fix-linker-error
Fix linker error due to missing export of debug operator
2020-10-04 22:31:17 -04:00
Florian Meinicke
dca11a1c36 Fix linker error in example
when building QtZeroConf as shared library: The debug operator<< for
QZeroConfService was not properly exported
2020-10-04 14:35:00 +02:00
Florian Meinicke
fe9d3cbc63 Add CMake project for example 2020-09-14 13:03:26 +02:00
Florian Meinicke
3fdf9dd8d8 Fix CMakeLists.txt for linux
Have to link to 'avahi-client' and not 'libavahi'
2020-09-14 13:03:26 +02:00
Florian Meinicke
a8084c9eac Update CMakeLists.txt
to make QtZeroConf installable and usable from other projects
2020-09-14 13:03:26 +02:00
Florian Meinicke
d630284b10 Update README with CMake build instructions 2020-09-14 12:45:48 +02:00
Florian Meinicke
fe3751ecdb Fix CMakeLists.txt
* Add `project`
* Remove hardcoded values for controlling the library type (i.e. shared
or static) in favour of using `BUILD_SHARED_LIBS` and letting CMake
manage the rest
* Fix linker error (at least on Windows w/ MinGW) that
'legacy_stdio_definitions.lib' couldn't be found
2020-09-14 12:45:48 +02:00
Corentin Jabot
26521fb848 Fix build on azure 2020-09-14 12:45:48 +02:00
Corentin Jabot
10f457f2bf Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot
351a834af7 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot
a504ec17c7 Compile as static lib 2020-09-14 12:45:48 +02:00
Corentin Jabot
ebb1958fff Build on android with cmake 2020-09-14 12:45:48 +02:00
Corentin Jabot
88d2d9475c Build as a shared lib 2020-09-14 12:45:48 +02:00
Corentin Jabot
0a69505312 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot
a09ffe6651 Fix cmake script 2020-09-14 12:45:48 +02:00
Rumen G.Bogdanovski
17f13cb80b bonjour-sdk: fix gcc compilation on windows 2020-08-29 15:04:23 +03:00
Rumen G.Bogdanovski
844e095e94 Revert "bonjour-sdk: fix gcc compilation on windows"
This reverts commit bd9ae98f7c.
2020-08-29 15:02:04 +03:00
Rumen G.Bogdanovski
bd9ae98f7c bonjour-sdk: fix gcc compilation on windows 2020-08-29 14:05:01 +03:00
Jonathan Bagg
9d7b114e6a Bonjour - change QSocketNotifier pointers to QSharedPointer 2020-07-08 18:59:09 -04:00
Jonathan Bagg
d346cd78a7 Bonjour - Fix memory leak and service rediscovery
The QSocketNotifiers for the resolver and address were not being deleted in
cleanUp().  This would cause a memory leak and also prevent a service from
being rediscovered after removed and added back on another device.  I
suspect the undeleted QSocketNotifier was holding a file descriptor open
which would break things.  Should fix

issue #27
Power-Cycling Bonjour Devices Can Cause Permanent Loss
https://github.com/jbagg/QtZeroConf/issues/27

and pull request #34
macOS: Fixed undetected service stop/start while the application is running
https://github.com/jbagg/QtZeroConf/pull/34
2020-07-06 22:05:29 -04:00
Manuel Weichselbaumer
5c4bdf1a56 Fix clang compiler errors and warnings
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2020-03-30 13:44:49 -04:00
Jonathan Bagg
ec8b3812e8 Update Bonjour sdk from 333 to 878.200.35 2020-03-28 14:51:08 -04:00
Jonathan Bagg
8625824b8b Bonjour - need to keep resolvers around for updates 2019-04-04 18:48:14 -04:00
Jonathan Bagg
c286fcd2c0 Change browser protocol options so it can only be IPv4 or IPv6, not both. 2019-03-05 21:26:41 -05:00
Jonathan Bagg
e92ba9936c switch from QExplicitlySharedDataPointer to QSharedPointer 2019-03-05 21:19:32 -05:00
Jonathan Bagg
800e66e4f3 qmake PREFIX. Install to Qt installation directory if no PREFIX specified. 2018-12-06 13:37:34 -05:00
Jonathan Bagg
31119114ce AvahiCore - add reference count for AvahiServer instance 2018-05-31 21:35:21 -04:00
jbagg
c0bbc139aa Merge pull request #23 from mzanetti/fix-multiple-browsers-on-android
only create one avahi server instance
2018-05-31 21:16:20 -04:00
Michael Zanetti
407e84dbfc only create one avahi server instance
On platforms which create their own avahi server (e.g. Android)
the previous code would assert as there can only be one server
instantiated but creating multiple QtZeroConf objects tried
to create multiple servers.
2018-06-01 01:51:03 +02:00
Jonathan Bagg
d91e9e5b81 updates from avahi project 2018-05-18 13:16:17 -04:00
Jonathan Bagg
f464b49e44 Finnish thread safe stuff 2018-04-15 12:33:50 -04:00
Jonathan Bagg
339b5c83eb AvahiClient - publish does not need to store name, type, domain and port anymore. 2018-04-11 13:22:43 -04:00
JonathanS
40ef144f14 Avahi Implementation: Fix double-free on errors in GROUP_UNCOMMITED stage 2018-04-11 10:56:52 +02:00
jbagg
40cf6adf8e Merge pull request #19 from viktorgino/master
Check if work queue is empty on cleanup
2018-04-03 10:43:24 -04:00