CPDistributedMessagingCenter.h 937 B

123456789101112131415161718192021222324252627282930313233
  1. @interface CPDistributedMessagingCenter : NSObject
  2. + (CPDistributedMessagingCenter*)centerNamed:(NSString*)serverName;
  3. - (BOOL)sendMessageName:(NSString*)name
  4. userInfo:(NSDictionary*)info;
  5. - (NSDictionary*)sendMessageAndReceiveReplyName:(NSString*)name
  6. userInfo:(NSDictionary*)info;
  7. - (NSDictionary*)sendMessageAndReceiveReplyName:(NSString*)name
  8. userInfo:(NSDictionary*)info
  9. error:(NSError**)error;
  10. - (void)sendMessageAndReceiveReplyName:(NSString*)name
  11. userInfo:(NSDictionary*)info
  12. toTarget:(id)target
  13. selector:(SEL)selector
  14. context:(void*)context;
  15. - (void)runServerOnCurrentThread;
  16. - (void)runServerOnCurrentThreadProtectedByEntitlement:(id)entitlement;
  17. - (void)stopServer;
  18. - (void)registerForMessageName:(NSString*)messageName
  19. target:(id)target
  20. selector:(SEL)selector;
  21. - (void)unregisterForMessageName:(NSString*)messageName;
  22. @end