source: admin/Sources/Services/ogAdmRepo/sources/ogAdmRepo.h @ e2ed552

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since e2ed552 was 3ec149c, checked in by alonso <alonso@…>, 15 years ago

git-svn-id: https://opengnsys.es/svn/trunk@1314 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 1.7 KB
Line 
1// ********************************************************************************************************
2// Servicio: ogAdmRepo
3// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
4// Fecha Creación: Marzo-2010
5// Fecha Última modificación: Marzo-2010
6// Nombre del fichero: ogAdmRepo.h
7// Descripción: Este fichero implementa el servicio de repositorio de imágenes
8// ********************************************************************************************************
9#include <stdio.h>
10#include <stdlib.h>
11#include <string.h>
12#include <ctype.h>
13#include <errno.h>
14#include <unistd.h>
15#include <time.h>
16#include <sys/types.h>
17#include <sys/socket.h>
18#include <netinet/in.h>
19#include <arpa/inet.h>
20#include "ogAdmLib.h"
21// ________________________________________________________________________________________________________
22// Variables globales
23// ________________________________________________________________________________________________________
24char iplocal[LONPRM];   // Dirección IP del servidor de administración
25char puerto[LONPRM];    // Puerto de comunicación
26
27char servidoradm[LONIP]; // IP del servidor
28
29typedef struct{  // Estructura usada para referenciar las funciones que procesan las tramas
30        char nf[LONFUN]; // Nombre de la función
31        BOOLEAN (*fptr)(SOCKET*,TRAMA*); // Puntero a la función que procesa la trama
32}MSGFUN;
33
34MSGFUN tbfuncionesRepo[MAXIMAS_FUNCIONES];
35
36// ________________________________________________________________________________________________________
37// Prototipo de funciones
38// ________________________________________________________________________________________________________
39BOOLEAN tomaConfiguracion(char*);
40BOOLEAN gestionaTrama(SOCKET*);
41BOOLEAN tomaConfiguracion(char*);
Note: See TracBrowser for help on using the repository browser.