1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 02:23:59 +00:00

First commit of MeshAgent for MeshCentral

This commit is contained in:
Ylian Saint-Hilaire
2017-10-12 14:28:03 -07:00
commit 75d86eb4c8
349 changed files with 210459 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#ifndef __ILIBDUKTAPE_NETWORKMONITOR__
#define __ILIBDUKTAPE_NETWORKMONITOR__
#include "duktape.h"
#ifdef __DOXY__
/*!
\brief NetworkMonitor emits events whenever the status of one of the network interfaces changes. <b>Note:</b> To use, must <b>require('NetworkMonitor')</b>
*/
class NetworkMonitor
{
public:
/*!
\brief 'change' event is emitted whenever any of the interfaces changes state
*/
void change;
/*!
\brief 'add' event is emitted when a new IPAddress is assigned to one of the network interfaces
\param addr The IPAddress that was added or assigned
*/
void add;
/*!
\brief 'remove' event is emitted when an IPAddress is removed from one of the network interfaces
\param addr The IPAddress that was removed.
*/
void remove;
};
#endif
void ILibDuktape_NetworkMonitor_Init(duk_context *ctx);
#endif