discovery.h

Utilities for SLP (Service Location Protocol) as specified in epi19

Summary
discovery.h
Variables
slperrsTable of SLP error descriptions used for diagnostic messages
Functions
slp_registerRegister (or re-register) a local component for advertisement by SLP service agent.
slp_deregisterDe-register a local component with SLP service agent.
discoverCall openSLP to discover available acn.esta services.

Variables

slperrs

extern const char * const slperrs[]

Table of SLP error descriptions used for diagnostic messages

Functions

slp_register

int slp_register(ifMC(struct Lcomponent_s *Lcomp))

Register (or re-register) a local component for advertisement by SLP service agent.  All the necessary information is part of the Lcomponent_s (which is passed as the first arg if <CF_MULTICOMP> is set).

slp_deregister

void slp_deregister(ifMC(struct Lcomponent_s *Lcomp))

De-register a local component with SLP service agent.

discover

void discover(void)

Call openSLP to discover available acn.esta services.

This first builds a list of services, then queries each to find their attributes.  The callback for returned attributes <discAtt_cb> parses the attributes and adds or updates suitable discovered components in the Remote component set.

In applications where large numbers of remote components are discovered that are not connected to, it could be more efficient to maintain seperate sets for discovered components and actively connected components.

extern const char * const slperrs[]
Table of SLP error descriptions used for diagnostic messages
int slp_register(ifMC(struct Lcomponent_s *Lcomp))
Register (or re-register) a local component for advertisement by SLP service agent.
void slp_deregister(ifMC(struct Lcomponent_s *Lcomp))
De-register a local component with SLP service agent.
void discover(void)
Call openSLP to discover available acn.esta services.
Close