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:
32
microscript/ILibDuktape_NetworkMonitor.h
Normal file
32
microscript/ILibDuktape_NetworkMonitor.h
Normal 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
|
||||
Reference in New Issue
Block a user