aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/headers/app/RendezvousClient.h
blob: e66f518798635b3c48fb609e1f3445bf89df6a4c (plain)
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
//
//  RendezvousClient.h
//  SC3lang
//
//  Created by C. Ramakrishnan on Mon Feb 24 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface OSCService : NSObject {
// a glorified struct (declared as an Obj-C class so I can put it in NSArrays)
// stored in the oscServices ivar of RendezvousClient
@public
	NSNetService*   netService;
	BOOL            isResolved;
	NSString* 	    hostName;
	const struct    sockaddr_in* sockaddr;
	unsigned 	    hostAddress;
	unsigned short  port;
	int				refCount;
}

@end

@interface RendezvousClient : NSObject {
	NSNetServiceBrowser* browser;
	NSMutableArray* oscServices;
}

+ (RendezvousClient*)sharedClient;

// interface
- (void)findOSCServices;
- (OSCService*)oscServiceAtIndex:(unsigned)index;
- (unsigned)numberOfOSCServices;

@end