Defines | Functions | Variables
zeroconf.c File Reference
#include "stdafx.h"
#include "csocket.h"
#include "csocketevents.h"
#include "cphidgetlist.h"
#include "cphidgetmanager.h"
#include "cphidgetdictionary.h"
#include "cphidgetsbc.h"
#include "zeroconf.h"
#include "dns_sd.h"
Include dependency graph for zeroconf.c:

Go to the source code of this file.

Defines

#define DNSServiceAddRecordPtr   DNSServiceAddRecord
#define DNSServiceBrowsePtr   DNSServiceBrowse
#define DNSServiceConstructFullNamePtr   DNSServiceConstructFullName
#define DNSServiceProcessResultPtr   DNSServiceProcessResult
#define DNSServiceQueryRecordPtr   DNSServiceQueryRecord
#define DNSServiceRefDeallocatePtr   DNSServiceRefDeallocate
#define DNSServiceRefSockFDPtr   DNSServiceRefSockFD
#define DNSServiceRegisterPtr   DNSServiceRegister
#define DNSServiceRemoveRecordPtr   DNSServiceRemoveRecord
#define DNSServiceResolvePtr   DNSServiceResolve
#define DNSServiceUpdateRecordPtr   DNSServiceUpdateRecord

Functions

int cancelPendingZeroconfLookups (CPhidgetRemoteHandle networkInfo)
int dns_callback_thread (void *ptr)
void DNSServiceBrowse_Phidget_CallBack (DNSServiceRef service, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *name, const char *type, const char *domain, void *context)
void DNSServiceBrowse_sbc_CallBack (DNSServiceRef service, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *name, const char *type, const char *domain, void *context)
void DNSServiceBrowse_ws_CallBack (DNSServiceRef service, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *name, const char *type, const char *domain, void *context)
void DNSServiceQueryRecord_CallBack (DNSServiceRef DNSServiceRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context)
void DNSServiceQueryRecord_Phidget_CallBack (DNSServiceRef DNSServiceRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context)
void DNSServiceQueryRecord_SBC_CallBack (DNSServiceRef DNSServiceRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context)
void DNSServiceResolve_CallBack (DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context)
int getZeroconfHostPort (CPhidgetRemoteHandle networkInfo)
int getZeroconfIPAddr (CPhidgetRemoteHandle networkInfo)
int InitializeZeroconf ()
static uint8_t * InternalTXTRecordSearch (uint16_t txtLen, const void *txtRecord, const char *key, unsigned long *keylen)
void PhidFromTXT (CPhidgetHandle phid, uint16_t txtLen, const char *txtRecord)
int refreshZeroconf (CPhidgetRemoteHandle networkInfo, DNSServiceQueryRecordReply callBack, void *userPtr)
int refreshZeroconfPhidget (CPhidgetHandle phid)
int refreshZeroconfSBC (CPhidgetSBCHandle sbc)
void SBCFromTXT (CPhidgetSBCHandle sbc, uint16_t txtLen, const char *txtRecord)
const voidTXTRecordGetValuePtrPtr (uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen)
int UninitializeZeroconf ()

Variables

int Dns_sdBrowsing = FALSE
int Dns_sdInitialized = FALSE
pthread_t dns_thread = NULL
int stopBrowsing = FALSE
DNSServiceRef zeroconf_browse_phidget_ref = NULL
DNSServiceRef zeroconf_browse_sbc_ref = NULL
DNSServiceRef zeroconf_browse_ws_ref = NULL

Define Documentation

Definition at line 44 of file zeroconf.c.

Definition at line 47 of file zeroconf.c.

Definition at line 50 of file zeroconf.c.

Definition at line 42 of file zeroconf.c.

Definition at line 49 of file zeroconf.c.

Definition at line 43 of file zeroconf.c.

Definition at line 51 of file zeroconf.c.

Definition at line 41 of file zeroconf.c.

Definition at line 46 of file zeroconf.c.

Definition at line 48 of file zeroconf.c.

Definition at line 45 of file zeroconf.c.


Function Documentation

Definition at line 787 of file zeroconf.c.

int dns_callback_thread ( void ptr)

Definition at line 122 of file zeroconf.c.

void DNSServiceBrowse_Phidget_CallBack ( DNSServiceRef  service,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  name,
const char *  type,
const char *  domain,
void context 
)

Definition at line 407 of file zeroconf.c.

void DNSServiceBrowse_sbc_CallBack ( DNSServiceRef  service,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  name,
const char *  type,
const char *  domain,
void context 
)

Definition at line 594 of file zeroconf.c.

void DNSServiceBrowse_ws_CallBack ( DNSServiceRef  service,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  name,
const char *  type,
const char *  domain,
void context 
)

Definition at line 745 of file zeroconf.c.

void DNSServiceQueryRecord_CallBack ( DNSServiceRef  DNSServiceRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  fullname,
uint16_t  rrtype,
uint16_t  rrclass,
uint16_t  rdlen,
const void rdata,
uint32_t  ttl,
void context 
)

Definition at line 799 of file zeroconf.c.

void DNSServiceQueryRecord_Phidget_CallBack ( DNSServiceRef  DNSServiceRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  fullname,
uint16_t  rrtype,
uint16_t  rrclass,
uint16_t  rdlen,
const void rdata,
uint32_t  ttl,
void context 
)

Definition at line 303 of file zeroconf.c.

void DNSServiceQueryRecord_SBC_CallBack ( DNSServiceRef  DNSServiceRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  fullname,
uint16_t  rrtype,
uint16_t  rrclass,
uint16_t  rdlen,
const void rdata,
uint32_t  ttl,
void context 
)

Definition at line 382 of file zeroconf.c.

void DNSServiceResolve_CallBack ( DNSServiceRef  sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceErrorType  errorCode,
const char *  fullname,
const char *  hosttarget,
uint16_t  port,
uint16_t  txtLen,
const unsigned char *  txtRecord,
void context 
)

Definition at line 899 of file zeroconf.c.

Definition at line 933 of file zeroconf.c.

Definition at line 850 of file zeroconf.c.

Definition at line 1039 of file zeroconf.c.

static uint8_t* InternalTXTRecordSearch ( uint16_t  txtLen,
const void txtRecord,
const char *  key,
unsigned long *  keylen 
) [static]

Definition at line 87 of file zeroconf.c.

void PhidFromTXT ( CPhidgetHandle  phid,
uint16_t  txtLen,
const char *  txtRecord 
)

Definition at line 184 of file zeroconf.c.

int refreshZeroconf ( CPhidgetRemoteHandle  networkInfo,
DNSServiceQueryRecordReply  callBack,
void userPtr 
)

Definition at line 986 of file zeroconf.c.

Definition at line 1034 of file zeroconf.c.

Definition at line 1029 of file zeroconf.c.

void SBCFromTXT ( CPhidgetSBCHandle  sbc,
uint16_t  txtLen,
const char *  txtRecord 
)

Definition at line 328 of file zeroconf.c.

const void* TXTRecordGetValuePtrPtr ( uint16_t  txtLen,
const void txtRecord,
const char *  key,
uint8_t *  valueLen 
)

Definition at line 108 of file zeroconf.c.

Definition at line 1206 of file zeroconf.c.


Variable Documentation

int Dns_sdBrowsing = FALSE

Definition at line 55 of file zeroconf.c.

int Dns_sdInitialized = FALSE

Definition at line 54 of file zeroconf.c.

pthread_t dns_thread = NULL

Definition at line 61 of file zeroconf.c.

int stopBrowsing = FALSE

Definition at line 56 of file zeroconf.c.

Definition at line 59 of file zeroconf.c.

Definition at line 58 of file zeroconf.c.

Definition at line 57 of file zeroconf.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22