1 /**
2  * Copyright (c) 2021, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.net.nsd;
18 
19 import android.net.nsd.AdvertisingRequest;
20 import android.net.nsd.DiscoveryRequest;
21 import android.net.nsd.INsdManagerCallback;
22 import android.net.nsd.IOffloadEngine;
23 import android.net.nsd.NsdServiceInfo;
24 import android.os.Messenger;
25 
26 /**
27  * Interface that NsdService implements for each NsdManager client.
28  *
29  * {@hide}
30  */
31 interface INsdServiceConnector {
registerService(int listenerKey, in AdvertisingRequest advertisingRequest)32     void registerService(int listenerKey, in AdvertisingRequest advertisingRequest);
unregisterService(int listenerKey)33     void unregisterService(int listenerKey);
discoverServices(int listenerKey, in DiscoveryRequest discoveryRequest)34     void discoverServices(int listenerKey, in DiscoveryRequest discoveryRequest);
stopDiscovery(int listenerKey)35     void stopDiscovery(int listenerKey);
resolveService(int listenerKey, in NsdServiceInfo serviceInfo)36     void resolveService(int listenerKey, in NsdServiceInfo serviceInfo);
startDaemon()37     void startDaemon();
stopResolution(int listenerKey)38     void stopResolution(int listenerKey);
registerServiceInfoCallback(int listenerKey, in NsdServiceInfo serviceInfo)39     void registerServiceInfoCallback(int listenerKey, in NsdServiceInfo serviceInfo);
unregisterServiceInfoCallback(int listenerKey)40     void unregisterServiceInfoCallback(int listenerKey);
registerOffloadEngine(String ifaceName, in IOffloadEngine cb, long offloadCapabilities, long offloadType)41     void registerOffloadEngine(String ifaceName, in IOffloadEngine cb, long offloadCapabilities, long offloadType);
unregisterOffloadEngine(in IOffloadEngine cb)42     void unregisterOffloadEngine(in IOffloadEngine cb);
43 }
44