supercollider-tmbundle/Support/sc3ctrl/VVOSC.framework/Headers/OSCZeroConfDomain.h

45 lines
1.1 KiB
Objective-C

//
// OSCZeroConfDomain.h
// VVOSC
//
// Created by bagheera on 12/9/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#if IPHONE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif
#import <pthread.h>
#import <sys/socket.h>
#include <arpa/inet.h>
@interface OSCZeroConfDomain : NSObject {
NSString *domainString;
NSNetServiceBrowser *serviceBrowser;
NSMutableArray *servicesArray;
pthread_rwlock_t servicesLock;
id domainManager;
}
+ (id) createWithDomain:(NSString *)d andDomainManager:(id)m;
- (id) initWithDomain:(NSString *)d andDomainManager:(id)m;
// NSNetServiceBrowser delegate methods
- (void)netServiceBrowser:(NSNetServiceBrowser *)n didFindService:(NSNetService *)x moreComing:(BOOL)m;
- (void)netServiceBrowser:(NSNetServiceBrowser *)n didNotSearch:(NSDictionary *)err;
- (void)netServiceBrowser:(NSNetServiceBrowser *)n didRemoveService:(NSNetService *)s moreComing:(BOOL)m;
// NSNetService delegate methods
- (void)netService:(NSNetService *)n didNotResolve:(NSDictionary *)err;
- (void)netServiceDidResolveAddress:(NSNetService *)n;
@end