libmcm  1.4.0
A client library for Moxa Connection Management
mcm-control.h File Reference

Go to the source code of this file.

Functions

int mcm_control_start (void)
 A helper function to start MCMD. More...
 
int mcm_control_stop (void)
 A helper function to stop MCMD. More...
 
int mcm_control_reload (void)
 A helper function to reload configure files. More...
 
const char * mcm_control_get_state (void)
 A helper function to stop MCMD. More...
 
int mcm_control_reset_factory (void)
 A helper function to reset factory configure files. More...
 
int mcm_control_reset_interface_factory (const char *interface_name)
 A helper function to reset interface configure files. More...
 

Detailed Description

This library is for Moxa Connection Management

Function Documentation

◆ mcm_control_get_state()

const char* mcm_control_get_state ( void  )

A helper function to stop MCMD.

Returns
If success return MCM state. If fail, return NULL.

◆ mcm_control_reload()

int mcm_control_reload ( void  )

A helper function to reload configure files.

Returns
If mcmd reload success return 0. If fail, return error number.

◆ mcm_control_reset_factory()

int mcm_control_reset_factory ( void  )

A helper function to reset factory configure files.

Returns
If mcmd reset factory success return 0. If fail, return error number.

◆ mcm_control_reset_interface_factory()

int mcm_control_reset_interface_factory ( const char *  interface_name)

A helper function to reset interface configure files.

Returns
If mcmd reset factory success return 0. If fail, return error number.

◆ mcm_control_start()

int mcm_control_start ( void  )

A helper function to start MCMD.

Returns
If mcmd start success return 0. If fail, return error number.

◆ mcm_control_stop()

int mcm_control_stop ( void  )

A helper function to stop MCMD.

Returns
If mcmd stop success return 0. If fail, return error number.