Functions | Variables
official_browse_example.cpp File Reference
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <avahi-client/client.h>
#include <avahi-client/lookup.h>
#include <avahi-common/simple-watch.h>
#include <avahi-common/malloc.h>
#include <avahi-common/error.h>
Include dependency graph for official_browse_example.cpp:

Go to the source code of this file.

Functions

static void browse_callback (AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata)
static void client_callback (AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void *userdata)
int main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[])
static void resolve_callback (AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata)

Variables

static AvahiSimplePoll * simple_poll = NULL

Function Documentation

static void browse_callback ( AvahiServiceBrowser *  b,
AvahiIfIndex  interface,
AvahiProtocol  protocol,
AvahiBrowserEvent  event,
const char *  name,
const char *  type,
const char *  domain,
AVAHI_GCC_UNUSED AvahiLookupResultFlags  flags,
void *  userdata 
) [static]

Definition at line 95 of file official_browse_example.cpp.

static void client_callback ( AvahiClient *  c,
AvahiClientState  state,
AVAHI_GCC_UNUSED void *  userdata 
) [static]

Definition at line 142 of file official_browse_example.cpp.

int main ( AVAHI_GCC_UNUSED int  argc,
AVAHI_GCC_UNUSED char *  argv[] 
)

Definition at line 153 of file official_browse_example.cpp.

static void resolve_callback ( AvahiServiceResolver *  r,
AVAHI_GCC_UNUSED AvahiIfIndex  interface,
AVAHI_GCC_UNUSED AvahiProtocol  protocol,
AvahiResolverEvent  event,
const char *  name,
const char *  type,
const char *  domain,
const char *  host_name,
const AvahiAddress *  address,
uint16_t  port,
AvahiStringList *  txt,
AvahiLookupResultFlags  flags,
AVAHI_GCC_UNUSED void *  userdata 
) [static]

Definition at line 38 of file official_browse_example.cpp.


Variable Documentation

AvahiSimplePoll* simple_poll = NULL [static]

Definition at line 36 of file official_browse_example.cpp.



zeroconf_avahi_demos
Author(s): Daniel Stonier
autogenerated on Fri Aug 28 2015 13:44:16