Build MdnsResponse in ServiceTypeClient
Instead of building MdnsResponse lists in MdnsSocketClient and sending each one to ServiceTypeClient, only parse packets in MdnsSocketClient, and let each ServiceTypeClient build the MdnsResponse from them. MdnsResponseDecoder already implements the same filtering that MdnsDiscoveryManager#onResponseReceived did on the service types so this is a no-op. This will be useful to allow MdnsServiceTypeClient to update its responses using records that are not necessarily part of a full MdnsResponse; for example if a reply packet only contains address records, or only SRV/TXT records without a PTR record. Bug: 267570781 Test: atest Change-Id: I8157c3732c425aae497d44c44c64b640859c13dc
Loading
Please register or sign in to comment