DNSBrowserThread.h [plain text]
#ifndef _DNSBrowserThread_
#define _DNSBrowserThread_ 1
#include "CNSLHeaders.h"
class mDNSPlugin;
class DNSBrowserThread
{
public:
DNSBrowserThread ( mDNSPlugin* parentPlugin );
virtual ~DNSBrowserThread ();
void Initialize ( CFRunLoopRef idleRunLoopRef );
void Cancel ( void );
sInt32 StartNodeLookups ( Boolean onlyLookForRegistrationDomains );
sInt32 StartServiceLookup ( CFStringRef domain, CFStringRef serviceType );
mDNSPlugin* GetParentPlugin ( void ) { return mParentPlugin; }
private:
mDNSPlugin* mParentPlugin;
CFRunLoopRef mRunLoopRef;
CFMutableArrayRef mListOfSearches;
Boolean mCanceled;
CFNetServiceBrowserRef mLocalDomainSearchingBrowserRef;
CFNetServiceBrowserRef mDomainSearchingBrowserRef;
};
#endif // #ifndef