vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
OSCQueryReply.h
1 #if IPHONE
2 #import <UIKit/UIKit.h>
3 #else
4 #import <Cocoa/Cocoa.h>
5 #endif
6 #import "OSCMessage.h"
7 #import <VVBasics/MAZeroingWeakRef.h>
8 
9 
10 
11 
12 @protocol OSCQueryReplyDelegate
13 // this method is called either when a reply was received for the query, or after the timeout duration (in which case an error will be passed)
14 - (void) oscQueryReplyReceived:(OSCMessage *)replyMsg;
15 @end
16 
17 
18 
19 
20 @interface OSCQueryReply : NSObject {
21  OSCMessage *initialQuery;
22  void (^replyBlock)(OSCMessage *replyMsg);
23  VV_MAZeroingWeakRef *replyDelegateZWR;
24  NSDate *timeoutDate;
25 }
26 
27 - (id) initWithQuery:(OSCMessage *)m timeout:(double)d replyBlock:(void (^)(OSCMessage *replyMsg))b;
28 - (id) initWithQuery:(OSCMessage *)m timeout:(double)t replyDelegate:(id <OSCQueryReplyDelegate>)d;
29 
30 - (void) dispatchReply:(OSCMessage *)r;
31 
32 // returns a YES if the timeout was dispatched (and i should be freed/removed from the queue)
33 - (BOOL) _timeoutCheckAgainstDate:(NSDate *)d;
34 
35 @property (readonly) OSCMessage *initialQuery;
36 
37 @end
Corresponds to an OSC message: contains zero or more values, and the address path the values have to ...
Definition: OSCMessage.h:18