-
Notifications
You must be signed in to change notification settings - Fork 1
/
HHServicePublisher.h
40 lines (24 loc) · 1.11 KB
/
HHServicePublisher.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
37
38
39
40
//
// HHServicePublisher.h
// Part of Hejsan-Hoppsan-Services : http://www.github.com/tolo/HHServices
//
// Created by Tobias on 2011-11-02.
// Copyright (c) 2011 Leafnode AB. All rights reserved.
//
#import "HHServiceSupport.h"
@class HHServicePublisher;
@protocol HHServicePublisherDelegate <NSObject>
- (void) serviceDidPublish:(HHServicePublisher*)servicePublisher;
- (void) serviceDidNotPublish:(HHServicePublisher*)servicePublisher;
@end
@interface HHServicePublisher : HHServiceSupport
@property (nonatomic, assign) id<HHServicePublisherDelegate> delegate;
@property (nonatomic, retain, readonly) NSString* name;
@property (nonatomic, retain, readonly) NSString* type;
@property (nonatomic, retain, readonly) NSString* domain;
@property (nonatomic, retain) NSData* txtData;
- (id) initWithName:(NSString*)name type:(NSString*)type domain:(NSString*)domain txtData:(NSData*)txtData port:(NSUInteger)port;
- (id) initWithName:(NSString*)name type:(NSString*)type domain:(NSString*)domain txtData:(NSData*)txtData port:(NSUInteger)port includeP2P:(BOOL)includeP2P;
- (BOOL) beginPublish;
- (void) endPublish;
@end