Jim Hague
a0c313412d
Adjust Unix socket/Winsock handling.
...
Centralise it into util-internal.h, remove duplicate definitions from mdns, and add new pseudo-functions _getdns_closesocket(), _getdns_poll() and _getdns_socketerror(). Convert error values to simple values and convert error checking to use _getdns_socketerror() and the simple values. The simple values can also be used with the result from getsockopt() with SO_ERROR in stub.c.
2017-10-04 17:31:33 +01:00
Willem Toorop
70ec5ea4d0
Some more for loop initializations
2017-09-01 16:34:06 +02:00
Willem Toorop
9a273cf144
Get rid of superfluous struct member query_id
2017-06-15 21:24:40 +02:00
Willem Toorop
2a496969cd
Fixes for mdns
2017-03-23 12:53:44 +01:00
Willem Toorop
b48a92c8f5
Max OS-X and FreeBSD multicast portability
2017-03-22 12:33:13 +01:00
Willem Toorop
a77a335370
Comment out dead assignement
...
To silence static code analysis
2017-03-20 21:57:57 +01:00
Willem Toorop
24abf43de1
Fit mdns code with pending dns netreqs on EMFILE
2017-03-20 21:33:19 +01:00
Willem Toorop
ed0d4d044c
Merge remote-tracking branch 'upstream/develop' into features/mdns-client
2017-03-20 16:42:24 +01:00
Christian Huitema
ed66edf52a
Making sure that the project compiles on Windows when HAVE_MDNS_SUPPORT is present.
...
Moving the 2 additional LRU functions from mdns.c to lruhash.c
Defining the 2 additional functions in lruhash.h
2017-03-17 12:19:54 -07:00
Willem Toorop
14c9f3aafc
Track netreqs "in flight"
2017-03-14 17:17:56 +01:00
Willem Toorop
79ce0cff85
Make mdns compile on Linux
2017-03-09 14:36:20 +01:00
Willem Toorop
de1ab4c8a4
Merge branch 'develop' into huitema-develop
2017-03-06 16:07:12 +01:00
Christian Huitema
4058529081
First version of the MDNS multicast client that actually works.
2017-03-03 16:52:02 -08:00
Christian Huitema
03307a7b71
Code almost complete for the MDNS multicast + cache.
...
Of course, we still need a lot of testing.
2017-02-23 17:55:31 -08:00
Willem Toorop
4b6962cd9a
Use __FUNC__ instead of function for protability
...
It is #defined to __FUNCTION__ or to __func__ depending on what configure detected.
2017-02-19 09:55:10 +01:00
Christian Huitema
6d3e0c7ca2
Rewrote the continuous query organization to use the LRU cache instead of an RB tree.
2017-02-14 11:30:29 -10:00
Christian Huitema
1587e2f8f5
Code to manage the MDNS cache using LRUHASH
2017-02-13 18:28:46 -10:00
Christian Huitema
93d6f2b18f
Intermediate commit, after definition of the MDNS context
2017-02-06 18:23:35 -10:00
Christian Huitema
31eee9c7d1
Intermediate commit of context.h, mdns.[ch]
2017-01-20 19:44:05 -08:00
Christian Huitema
99fb7100ea
Placing all MDNS code under ifdef HAVE MDNS SUPPORT to minimize risk in main branch.
2016-12-22 20:30:14 -08:00
Christian Huitema
f1b8b25afa
Implementation of basic MDNS support
2016-12-22 15:51:47 -08:00