⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mensajes.h

📁 multiplataform real time Linux monitor
💻 H
字号:
/* LiMon-Server|  Copyright (C) 2006 Marcelo Busico||  Author:  Marcelo Busico    marcelobusico@gmail.com||  This program is free software which I release under the GNU General Public|  License. You may redistribute and/or modify this program under the terms|  of that license as published by the Free Software Foundation; either|  version 2 of the License, or (at your option) any later version.||  This program is distributed in the hope that it will be useful,|  but WITHOUT ANY WARRANTY; without even the implied warranty of|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the|  GNU General Public License for more details.  Version 2 is in the|  LICENSE.txt file in the top level directory of this distribution.| |  To get a copy of the GNU General Puplic License, write to the Free Software|  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//* Mensajes a enviar a traves de un socket */#ifndef MENSAJES_H_#define MENSAJES_H_/*  * Estructura de datos que define la cabecera que se enviara antes de cada mensaje */typedef struct Cabecera{    int identificador;    char password[64];} Cabecera; /*  * Estructura de datos identifica que mensaje sera enviado */typedef enum{    IdConfirmaPassword=1,        IdPedirEstadoMicro=10,    IdPedirEstadoMemoria=11,    IdPedirEstadoIntercambio=12,    IdPedirUpTime=13,    IdPedirTemperatura=14,    IdPedirEstadoServidores=15,    IdPedirEstadoDisco=16,    IdPedirHora=17,    IdPedirFecha=18,    IdDevolverEstadoMicro=110,    IdDevolverEstadoMemoria=111,    IdDevolverEstadoIntercambio=112,    IdDevolverUpTime=113,    IdDevolverTemperatura=114,    IdDevolverEstadoServidores=115,    IdDevolverEstadoDisco=116,    IdDevolverHora=117,    IdDevolverFecha=118,        IdPasswordCorrecta=200,    IdPasswordIncorrecta=201,    IdDesconexion=202} Identificadores; /* Estructura de datos que devuelve el servidor al cliente cuando * pide el Estado del Microprocesador  */typedef struct MensajeDevolverEstadoMicro{    int usoSistema;    int usoUsuario;} MensajeDevolverEstadoMicro;/* Estructura de datos que devuelve el servidor al cliente cuando * pide el Estado de la Memoria Fisica  */typedef struct MensajeDevolverEstadoMemoria{    long usada;    long libre;    long buffer;} MensajeDevolverEstadoMemoria;/* Estructura de datos que devuelve el servidor al cliente cuando * pide el Estado de la Memoria de Intercambio  */typedef struct MensajeDevolverEstadoIntercambio{    long usada;    long libre;} MensajeDevolverEstadoIntercambio;/* Estructura de datos que devuelve el servidor al cliente cuando * pide el Tiempo en Servicio de la PC */typedef struct MensajeDevolverUpTime{    unsigned long tiempo;} MensajeDevolverUpTime;/* Estructura de datos que devuelve el servidor al cliente cuando * pide la Temperatura de la PC */typedef struct MensajeDevolverTemperatura{    int cpu;    int sistema;    int hd;} MensajeDevolverTemperatura;/* Estructura de datos que devuelve el servidor al cliente cuando * pide el Estado de los Servidores */typedef struct MensajeDevolverEstadoServidores{    int web;    int correo;    int ssh;    int ftp;    int samba;} MensajeDevolverEstadoServidores;/* Estructura de datos que devuelve el servidor al cliente cuando * pide el Estado de las particiones del disco */typedef struct MensajeDevolverEstadoDisco{    unsigned long raizTotal;    unsigned long raizUsado;    unsigned long raizLibre;    unsigned long homeTotal;    unsigned long homeUsado;    unsigned long homeLibre;} MensajeDevolverEstadoDisco;/* Estructura de datos que devuelve el servidor al cliente cuando * pide la hora del sistema */typedef struct MensajeDevolverHora{    int horas;    int minutos;    int segundos;} MensajeDevolverHora;/* Estructura de datos que devuelve el servidor al cliente cuando * pide la fecha del sistema */typedef struct MensajeDevolverFecha{    int anio;    int mes;    int dia;} MensajeDevolverFecha;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -