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
Rev | Line | |
---|
[3ec149c] | 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 | // ________________________________________________________________________________________________________ |
---|
| 24 | char iplocal[LONPRM]; // Dirección IP del servidor de administración |
---|
| 25 | char puerto[LONPRM]; // Puerto de comunicación |
---|
| 26 | |
---|
| 27 | char servidoradm[LONIP]; // IP del servidor |
---|
| 28 | |
---|
| 29 | typedef 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 | |
---|
| 34 | MSGFUN tbfuncionesRepo[MAXIMAS_FUNCIONES]; |
---|
| 35 | |
---|
| 36 | // ________________________________________________________________________________________________________ |
---|
| 37 | // Prototipo de funciones |
---|
| 38 | // ________________________________________________________________________________________________________ |
---|
| 39 | BOOLEAN tomaConfiguracion(char*); |
---|
| 40 | BOOLEAN gestionaTrama(SOCKET*); |
---|
| 41 | BOOLEAN tomaConfiguracion(char*); |
---|
Note: See
TracBrowser
for help on using the repository browser.