Bayonne
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ost::BayonneZeroconf Class Reference

This class is used to bind services that are to be published with zeroconf, such as by the avahi module. More...

#include <bayonne.h>

Public Types

enum  zeroconf_family_t { ZEROCONF_IPANY, ZEROCONF_IPV6, ZEROCONF_IPV4 }
 

Public Member Functions

BayonneZeroconfgetNext (void)
 Get the next zeroconf binding to iterate an object list. More...
 
const char * getType (void)
 Get the binding protocol description, usually "_svc._proto". More...
 
tpport_t getPort (void)
 Get the binding service port number. More...
 
zeroconf_family_t getFamily (void)
 

Static Public Member Functions

static BayonneZeroconfgetFirst (void)
 Get the first zeroconf binding, used by zeroconf plugins. More...
 

Protected Member Functions

 BayonneZeroconf (const char *type, zeroconf_family_t family=ZEROCONF_IPANY)
 

Protected Attributes

BayonneZeroconfzeroconf_next
 
const char * zeroconf_type
 
tpport_t zeroconf_port
 
zeroconf_family_t zeroconf_family
 

Static Protected Attributes

static BayonneZeroconfzeroconf_first
 

Detailed Description

This class is used to bind services that are to be published with zeroconf, such as by the avahi module.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Bayonne zerconf binding class.

Member Enumeration Documentation

Enumerator
ZEROCONF_IPANY 
ZEROCONF_IPV6 
ZEROCONF_IPV4 

Constructor & Destructor Documentation

ost::BayonneZeroconf::BayonneZeroconf ( const char *  type,
zeroconf_family_t  family = ZEROCONF_IPANY 
)
protected

Member Function Documentation

zeroconf_family_t ost::BayonneZeroconf::getFamily ( void  )
inline
static BayonneZeroconf* ost::BayonneZeroconf::getFirst ( void  )
inlinestatic

Get the first zeroconf binding, used by zeroconf plugins.

Returns
first zeroconf binding.
BayonneZeroconf* ost::BayonneZeroconf::getNext ( void  )
inline

Get the next zeroconf binding to iterate an object list.

Returns
next zerconf binding.
tpport_t ost::BayonneZeroconf::getPort ( void  )
inline

Get the binding service port number.

If 0, then disabled.

Returns
0 or port number.
const char* ost::BayonneZeroconf::getType ( void  )
inline

Get the binding protocol description, usually "_svc._proto".

Returns
binding description.

Member Data Documentation

zeroconf_family_t ost::BayonneZeroconf::zeroconf_family
protected
BayonneZeroconf* ost::BayonneZeroconf::zeroconf_first
staticprotected
BayonneZeroconf* ost::BayonneZeroconf::zeroconf_next
protected
tpport_t ost::BayonneZeroconf::zeroconf_port
protected
const char* ost::BayonneZeroconf::zeroconf_type
protected

The documentation for this class was generated from the following file: