Closed dankamongmen closed 5 years ago
Note that we can't base this solely on which callbacks are set, since we still would want to support lookups and enumeration-on-demand even for those we don't provide callbacks for. Saying "I'm uninterested" doesn't mean "don't send a discovery request", but rather "don't deal with these at all."
I've implemented this for ifaces now (the only thing we actually cache yet). Need a unit test for this.
Unit tests added:
Start 12: NoTrack.NoWorkIsInvalid
12/13 Test #12: NoTrack.NoWorkIsInvalid ............. Passed 0.01 sec
Start 13: NoTrack.IfaceFailsLookup
13/13 Test #13: NoTrack.IfaceFailsLookup ............ Passed 0.01 sec
Right now it's all or nothing. The user ought be allowed to supply some manner of bitmask, though interfaces can't ever really be disabled...with our current design, anyway.