KNX IoT
KNX IoT Point API stack implementation
oc_network_monitor.h File Reference

monitoring (callbacks) for network events (network interfaces going up/down) More...

Go to the source code of this file.

Functions

int oc_add_network_interface_event_callback (interface_event_handler_t cb)
 Add the callback to receive change notifications for Network interface event. More...
 
int oc_add_session_event_callback (session_event_handler_t cb)
 Add the callback to receive change notifications for Network interface event. More...
 
int oc_remove_network_interface_event_callback (interface_event_handler_t cb)
 Remove the callback to receive change notifications for Network interface event. More...
 
int oc_remove_session_event_callback (session_event_handler_t cb)
 Remove the callback to receive change notifications for Network interface event. More...
 

Detailed Description

monitoring (callbacks) for network events (network interfaces going up/down)

Definition in file oc_network_monitor.h.

Function Documentation

◆ oc_add_network_interface_event_callback()

int oc_add_network_interface_event_callback ( interface_event_handler_t  cb)

Add the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be added. Must not be NULL.
Returns
0 if success. -1 return if error occur.

◆ oc_add_session_event_callback()

int oc_add_session_event_callback ( session_event_handler_t  cb)

Add the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be added. Must not be NULL.
Returns
0 if success. -1 return if error occur.

◆ oc_remove_network_interface_event_callback()

int oc_remove_network_interface_event_callback ( interface_event_handler_t  cb)

Remove the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be removed. Must not be NULL.
Returns
0 if success. -1 return if error occur.

◆ oc_remove_session_event_callback()

int oc_remove_session_event_callback ( session_event_handler_t  cb)

Remove the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be removed. Must not be NULL.
Returns
0 if success. -1 return if error occur.