supernova: allocators - fix construct method
[supercollider.git] / editors / scapp / include / RendezvousClient.h
blob5825bc5e18ca3c04df384ebad0c8bcab2ef4389f
1 //
2 // RendezvousClient.h
3 // SC3lang
4 //
5 // Created by C. Ramakrishnan on Mon Feb 24 2003.
6 // Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7 //
9 #import <Foundation/Foundation.h>
11 @interface OSCService : NSObject {
12 // a glorified struct (declared as an Obj-C class so I can put it in NSArrays)
13 // stored in the oscServices ivar of RendezvousClient
14 @public
15 NSNetService* netService;
16 BOOL isResolved;
17 NSString* hostName;
18 const struct sockaddr_in* sockaddr;
19 unsigned hostAddress;
20 unsigned short port;
21 int refCount;
24 @end
26 enum OSCServiceType
28 kOSCServiceUDP,
29 kOSCServiceTCP,
30 kNumOSCServiceTypes
33 @interface RendezvousClient : NSObject {
34 NSNetServiceBrowser* browsers[kNumOSCServiceTypes];
35 NSMutableArray* oscServices;
38 + (RendezvousClient*)sharedClient;
40 // interface
41 - (void)findOSCServices;
42 - (OSCService*)oscServiceAtIndex:(unsigned)index;
43 - (unsigned)numberOfOSCServices;
45 @end