Michael Bridgen
2cc0e8aaa6
Clarify comments
2014-10-28 10:54:37 +00:00
Michael Bridgen
840c0b9f86
Renamed variables for consistency
2014-10-23 16:23:55 +01:00
Michael Bridgen
156314a802
Complete multicast requests on first response
...
This is the simplest thing that works, is consistent with what happens
if there's a local answer, and avoids having all multicast requests
last 250ms or more.
Since we're no longer waiting *at least* the timeout period, I've
bumped the multicast response timeout up to half a second.
There was also a bug whereby the query would be entered into the
inflight map even if the socket write had failed (and the channel had
been closed).
2014-10-22 13:35:40 +01:00
Michael Bridgen
337919d741
Replaced ad-hoc printf with log levels
2014-10-20 18:18:16 +01:00
Bryan Boreham
624db7bdff
Replace hard-coded 4 with const for channel size
2014-10-20 16:59:39 +01:00
Bryan Boreham
b2dc08fd25
forgot to remove 'dns'
2014-10-20 16:00:56 +01:00
Bryan Boreham
9cfb93ab7b
Simplified algorithm in checkInFlightQueries()
2014-10-20 15:43:13 +01:00
Bryan Boreham
217e5e921e
Extract checkInFlightQueries method
2014-10-20 15:19:11 +01:00
Bryan Boreham
dcce09de52
Clean up some code-review issues
2014-10-20 14:21:29 +01:00
Bryan Boreham
8e2af9eec5
Tidy up exported/non-exported fields
2014-10-20 12:41:40 +01:00
Bryan Boreham
be3d089410
Shorten mDNS timeout
2014-10-10 17:14:39 +01:00
Bryan Boreham
97077339f4
Send back errors for SendQuery
2014-10-08 15:19:30 +01:00
Bryan Boreham
3175e64b63
Shut down multicast listener when client is shut down
2014-10-08 14:24:29 +01:00
Bryan Boreham
6506b63520
Removed IsInflightQuery that is done by IP address now
2014-10-08 13:49:20 +01:00
Bryan Boreham
37924f9f9b
Refactor into separate client and server classes
2014-10-08 11:30:42 +01:00
Bryan Boreham
930a6ff939
Remove log message
2014-10-07 16:29:17 +01:00
Bryan Boreham
a545d2738c
Move timeout to incoming queries
2014-10-07 12:47:18 +01:00
Bryan Boreham
2cab8415f2
Tidy up slightly
2014-10-07 12:10:19 +01:00
Bryan Boreham
a78766524b
Time out mDNS queries
2014-10-07 11:48:56 +01:00
Bryan Boreham
2d142abd3e
Close channel
2014-10-06 17:57:35 +01:00
Bryan Boreham
574bc2cb9e
Refactor MDNSClient as Actor
2014-10-06 17:56:50 +01:00
Bryan Boreham
69c415741e
Take interface name as parameter; don't assume ethwe
2014-10-06 13:37:09 +01:00
Michael Bridgen
3976e5ceaf
Moved main to top, libs to subpackage
2014-10-04 14:51:46 +01:00