Commit Graph
21 Commits
Author SHA1 Message Date
Bryan Boreham f30ecb4a48 MDNS Server test 2014-10-08 14:40:38 +01:00
Bryan Boreham 6fc817104e Shut down client when test finished 2014-10-08 14:40:18 +01:00
Bryan Boreham 3175e64b63 Shut down multicast listener when client is shut down 2014-10-08 14:24:29 +01:00
Bryan Boreham de94b06e89 Wait for response synchronously 2014-10-08 14:19:31 +01:00
Bryan Boreham 6a60b7b628 Don't need multiplexer 2014-10-08 14:16:13 +01:00
Bryan Boreham 6a9e0bb23f Shut down minimal server at end of test 2014-10-08 14:14:10 +01:00
Bryan Boreham dbc77b2943 Don't crash on nil (default) interface 2014-10-08 14:13:05 +01:00
Bryan Boreham 6506b63520 Removed IsInflightQuery that is done by IP address now 2014-10-08 13:49:20 +01:00
Bryan Boreham d234fe9506 Move handleMDNS into server file 2014-10-08 12:31:20 +01:00
Bryan Boreham 37924f9f9b Refactor into separate client and server classes 2014-10-08 11:30:42 +01:00
Bryan Boreham 9ec95e4fa8 Unit test 2014-10-07 16:29:58 +01:00
Bryan Boreham 930a6ff939 Remove log message 2014-10-07 16:29:17 +01:00
Bryan Boreham 8feddc96ed Merge remote-tracking branch 'upstream/master' 2014-10-07 13:18:34 +01:00
Michael Bridgen e8e86dadc0 Changed to accept a CIDR address and use net.IP
* In general we'll have an IP address and a subnet mask for the weave
   network address; account for this in the zone DB and in the HTTP
   server.

 * Use the net.IP type rather than string, which gives us a bit more
   generality (in theory it'll deal with Ipv6 too) and validation (we
   attempt to parse the input)
2014-10-07 12:49:52 +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