EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Structures | Functions
mdns_service.h File Reference

File containing the definition of mDNS service structures. More...

#include "../utils/iface_mapper.h"
#include "command_mapper.h"
#include "dns_config.h"
#include "mdns_mapper.h"
#include "reflection_list.h"
Include dependency graph for mdns_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mdns_context
 The mDNS context. More...
 

Functions

int run_mdns (struct mdns_context *context)
 Runs the mDNS forwarder service. More...
 
int run_mdns_thread (struct mdns_conf *mdns_config, char *supervisor_control_path, hmap_vlan_conn *vlan_mapper, pthread_t *id)
 Runs the mDNS forwarder service thread. More...
 
int close_mdns (struct mdns_context *context)
 Closes mDNS service. More...
 

Detailed Description

File containing the definition of mDNS service structures.

Author
Alexandru Mereacre
Date
2021

Function Documentation

◆ close_mdns()

int close_mdns ( struct mdns_context context)

Closes mDNS service.

Parameters
contextThe mDNS context structure
Returns
0 on success, -1 on failure

◆ run_mdns()

int run_mdns ( struct mdns_context context)

Runs the mDNS forwarder service.

Parameters
contextThe mDNS context structure.
Returns
int 0 on success, -1 on failure

◆ run_mdns_thread()

int run_mdns_thread ( struct mdns_conf mdns_config,
char *  supervisor_control_path,
hmap_vlan_conn vlan_mapper,
pthread_t *  id 
)

Runs the mDNS forwarder service thread.

Parameters
mdns_configThe mDNS config structure
supervisor_control_pathThe UNIX domain supervisor control path
vlan_mapperThe VLAN mapper object
idThe returned thread id
Returns
int 0 on success, -1 on failure