forked from jarnoh/cordova-dnssd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnssd.h
36 lines (25 loc) · 900 Bytes
/
dnssd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Bonjour DNS-SD plugin for Cordova.
* Allows browsing and resolving of local ad-hoc services
*
* jarnoh@komplex.org - March 2012
*
*/
#import <Foundation/Foundation.h>
#import <Foundation/NSNetServices.h>
#import <Cordova/CDVPlugin.h>
@interface CDVBonjour : CDVPlugin <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
{
NSString* browseCallback;
NSString* resolveCallback;
NSNetServiceBrowser* netServiceBrowser;
NSNetService* currentResolve;
}
@property (nonatomic, copy) NSString* browseCallback;
@property (nonatomic, copy) NSString* resolveCallback;
@property (nonatomic, retain, readwrite) NSNetServiceBrowser* netServiceBrowser;
@property (nonatomic, retain, readwrite) NSNetService* currentResolve;
- (void)browse:(CDVInvokedUrlCommand*)command;
- (void)resolve:(CDVInvokedUrlCommand*)command;
- (void)stopBrowsing:(CDVInvokedUrlCommand*)command;
@end