InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MRendezvousClient.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Peter Boctor
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __MRendezvousClient__
25 #define __MRendezvousClient__
26 
27 #error "is this file obsolete? - I see no implementation"
28 
29 #include <CarbonEvents.h>
30 
32 {
33 public:
34 
35  virtual void ListClients();
36  virtual char* FindClient(const char* clientName);
37 
38 private:
39 
40  static void ListClientBrowserCallback(CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef domainOrService, CFStreamError* error, void* info);
41 
42  static void FindClientBrowserCallback(CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef domainOrService, CFStreamError* error, void* info);
43  static void FindClientResolveCallback(CFNetServiceRef service, CFStreamError* error, void* info);
44 
45  // FIXME_DECARB: Carbon dependency
46  static void InstallEventHandlers();
47  static pascal void TimerAction(EventLoopTimerRef theTimer, EventLoopIdleTimerMessage inAction, void* userData);
48 
49  static void CancelBrowsing();
50  static void CancelResolving();
51 
52  static CFStringRef fFindClientName;
53  static char fFoundClientIP[64];
54  static CFNetServiceBrowserRef fServiceBrowserRef;
55  static CFNetServiceRef fServiceBeingResolved;
56 };
57 
58 #endif