3 #import <UIKit/UIKit.h>
5 #import <Cocoa/Cocoa.h>
8 #import <VVBasics/VVBasics.h>
9 #import "OSCQueryReply.h"
12 #import <netinet/in.h>
14 #import <libkern/OSAtomic.h>
17 #import "OSCMessage.h"
18 #import "OSCOutPort.h"
35 OSSpinLock socketLock;
37 struct sockaddr_in addr;
42 OSSpinLock scratchLock;
48 OSSpinLock zeroConfLock;
50 NSNetService *zeroConfDest;
52 NSMutableArray *scratchArray;
57 + (id) createWithPort:(
unsigned short)p;
59 + (id) createWithPort:(
unsigned short)p labelled:(NSString *)n;
60 - (id) initWithPort:(
unsigned short)p;
61 - (id) initWithPort:(
unsigned short)p labelled:(NSString *)n;
63 - (void) prepareToBeDeleted;
66 - (NSDictionary *) createSnapshot;
68 - (BOOL) createSocket;
71 - (void) OSCThreadProc;
72 - (void) parseRawBuffer:(
unsigned char *)b ofMaxLength:(
int)l fromAddr:(
unsigned int)txAddr port:(
unsigned short)txPort;
75 - (void) handleScratchArray:(NSArray *)a;
83 - (void) dispatchQuery:(
OSCMessage *)m toOutPort:(
OSCOutPort *)o timeout:(
float)t replyDelegate:(
id <OSCQueryReplyDelegate>)d;
90 - (
unsigned short) port;
91 - (void) setPort:(
unsigned short)n;
92 - (NSString *) portLabel;
93 - (void) setPortLabel:(NSString *)n;
94 - (NSString *) zeroConfName;
96 - (NSString *) ipAddressString;
101 - (void) setDelegate:(
id)n;
103 - (void) setInterval:(
double)n;
Corresponds to an OSC message: contains zero or more values, and the address path the values have to ...
Definition: OSCMessage.h:18
NSString * portLabel
the "name" of the port (added to distinguish multiple osc input ports for bonjour) ...
Definition: OSCInPort.h:47
OSCInPort handles everything needed to receive OSC data on a given port.
Definition: OSCInPort.h:32
This class is used to measure how long it takes to do things; much easier to work with than NSDate...
Definition: VVStopwatch.h:16
MutLockDict is a thread-safe version of NSMutableDictionary.
Definition: MutLockDict.h:17
OSCOutPort handles everything needed to send OSC data to a given address.
Definition: OSCOutPort.h:25
id delegate
my delegate gets notified of incoming messages
Definition: OSCInPort.h:53