-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSDPDiscovery.h
36 lines (24 loc) · 1.01 KB
/
SSDPDiscovery.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
//
// SSDPDiscovery.h
// SSDP Browser
//
// Created by Thomas Tempelmann on 20.04.24.
// Copyright © 2024 Thomas Tempelmann. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SSDPService.h"
NS_ASSUME_NONNULL_BEGIN
@class SSDPDiscovery;
@protocol SSDPDiscoveryDelegate <NSObject>
- (void) ssdpDiscovery:(SSDPDiscovery*)discovery didDiscoverService:(SSDPService*)service;
@optional
- (void) ssdpDiscoveryDidStart:(SSDPDiscovery*)discovery;
- (void) ssdpDiscovery:(SSDPDiscovery*)discovery didFinishWithError:(NSError*)error;
- (void) ssdpDiscoveryDidFinish:(SSDPDiscovery*)discovery; // without error
@end
@interface SSDPDiscovery : NSObject
@property (nonatomic, weak) id<SSDPDiscoveryDelegate> delegate;
- (void) discoverServiceForDuration:(NSTimeInterval)duration /*10*/ searchTarget:(NSString*)searchTarget /*"ssdp:all"*/ port:(UInt16)port /*1900*/ onInterfaces:(NSArray<NSString*>*)onInterfaces specificAddress:(NSString*__nullable)specificAddress;
- (void) stop;
@end
NS_ASSUME_NONNULL_END