Commit Graph

28 Commits

Author SHA1 Message Date
Brian Kendall
16b50c700f Add optional parameter for binding service to specific interface 2022-10-28 13:12:56 -04:00
Florian Meinicke
29be12c558 Fix "multiple socket notifiers for same socket"
because the `addressNotifier` of the `Resolver` is deleted after a new
`QSocketNotifier` has been created. That means there are two socket
notifiers for the same socket for a brief moment causing this warning.
2022-10-04 08:05:29 +02:00
morixhub
74402496b0 Fixed handling of TXT records longer than 127 bytes 2022-04-08 21:29:56 -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
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
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
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
Viktor Verebelyi
0c4e94cff0 Check if work queue is empty on cleanup 2018-04-03 15:24:31 +01:00
Jonathan Bagg
87fd67c719 Bonjour - Simplify work queue 2017-11-06 20:54:34 -05:00
Matthias Kollmann
0c7f30b093 registered metatype for queued connections, qml integration;
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2017-11-02 20:28:56 -04:00
Matthias Kollmann
323d9494f5 Applied undo_some_whitespace_changes.patch 2017-10-23 20:12:00 +02:00
Matthias Kollmann
2d21502972 spaces to tabs 2017-10-19 20:51:49 +02:00
Matthias Kollmann
7f06953b6d Merge branch 'master' into shareddata 2017-10-19 20:43:00 +02:00
Matthias Kollmann
d32cd85183 Merge remote-tracking branch 'upstream/master' 2017-10-16 17:32:39 +02:00
Matthias Kollmann
e9ecf39c36 added parent to QZeroconf constructor 2017-10-16 17:12:09 +02:00
Jonathan Bagg
8a9936a4a5 Add publishExists() and browserExists() api calls. 2017-10-09 21:25:58 -04:00
Jonathan Bagg
2622544691 Emit removeService() for all discovered services when browser is stopped. 2017-10-09 21:23:00 -04:00
Matthias Kollmann
5895c408be redesigned QZeroConfService as shared data, wip compiles on mac 2017-10-06 15:55:46 +02:00
Jonathan Bagg
5dcb57b15c bonjour discovered services were missing the host name 2017-03-16 13:35:09 -04:00
Jonathan Bagg
195e740ceb Add txt records to discovered services 2017-03-15 20:32:28 -04:00
Jonathan Bagg
e4e4308942 Add txt records to service publication. 2017-03-10 20:08:54 -05:00
Jonathan Bagg
b04c27e47e Fix compiling with msvc. "interface" is a keyword. 2017-02-26 17:43:37 -05:00
Jonathan Bagg
813bf77058 Initial commit 2015-11-21 07:22:36 -05:00