Commit Graph

4194 Commits (ce6fe2e749fd704467db368fbe08d99d9bcba545)
 

Author SHA1 Message Date
OpenGnSys Support Team 13e48b4437 #883 add initial syslog support 2019-01-17 13:18:34 +01:00
OpenGnSys Support Team 9baecf8f71 #580 rework server socket handling
Modern server side using libev library, includes timeouts for clients.

After this patch, your system requires the libev-dev and libev4 packages
to compile ogAdmServer.
2019-01-17 13:18:32 +01:00
OpenGnSys Support Team 97b0052434 #580 more robust check for remote function
Use strncmp() that is bound to the function name length.
2019-01-17 13:18:30 +01:00
OpenGnSys Support Team 35cc972d46 #883 add og_info() and use it
Use __FUNCTION__ to print function name, this is a preparation work
to introduce syslog support.
2019-01-17 13:18:28 +01:00
OpenGnSys Support Team 5759db40b5 #580 use true/false definition from standard stdbool.h 2019-01-17 13:18:26 +01:00
OpenGnSys Support Team 05c4841807 #580 disregard INVALID_SOCKET 2019-01-17 13:18:23 +01:00
OpenGnSys Support Team 70f6f109d9 #580 disregard SOCKET_ERROR 2019-01-17 13:18:19 +01:00
OpenGnSys Support Team d9db3d8d73 #580 remove dead code uncovered by statification
These functions are not used, remove them.

sources/ogAdmServer.cpp:2208:13: warning: ‘bool actualizaCreacionSoftIncremental(Database, Table, char*, char*)’ defined but not used [-Wunused-function]
 static bool actualizaCreacionSoftIncremental(Database db, Table tbl, char* idi,char* idf)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1626:13: warning: ‘bool RESPUESTA_Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
 static bool RESPUESTA_Comando(int socket_c, TRAMA* ptrTrama)
             ^~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1600:13: warning: ‘bool Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
 static bool Comando(int socket_c, TRAMA* ptrTrama)
             ^~~~~~~
2019-01-17 13:18:17 +01:00
OpenGnSys Support Team d647d819a9 #580 constify parameter and statify function
Remove unnecessary function declaration in header files
2019-01-17 13:18:14 +01:00
OpenGnSys Support Team 8fb0089943 #580 remove AULAUP in configuration file
Overrides catalog, and aulaup variable is never set / used.
2019-01-17 13:18:11 +01:00
OpenGnSys Support Team f613fb2b58 #580 simplify check for empty string 2019-01-17 13:18:09 +01:00
OpenGnSys Support Team 7cd0b13357 #580 move global variable definitions to file
Save us from unnecessary initialization given this is in the .bss area.
2019-01-17 13:18:06 +01:00
OpenGnSys Support Team c4b897a646 #580 add og_log() and use it 2019-01-17 13:18:04 +01:00
OpenGnSys Support Team c0a46e291d #580 use bool from stdbool.h instead of BOOLEAN
C99 includes boolean definition in stdbool.h, use them.
2019-01-17 13:18:02 +01:00
OpenGnSys Support Team ba03878f86 #580 disregard SOCKET type, use int instead
Socket file descriptors are always an integer, no need for typedef.
2019-01-17 13:18:00 +01:00
OpenGnSys Support Team 353da2d34e #580 simplify load configuration file
Use fgets() and strtok() to parse the configuration to simplify the
existing handler.
2019-01-17 13:17:58 +01:00
OpenGnSys Support Team 0e095f1de7 #580 no need to iterate 1024 times to find a matching handler
There are only 41 handlers, no need to keep inspecting up to 1024.
Most entries in this array are null.
2019-01-17 13:17:55 +01:00
OpenGnSys Support Team f997cc11a3 #580: No need for runtime initialization of handlers.
Removes 70 LoCs.
2019-01-17 13:17:41 +01:00
Ramón M. Gómez 7cb6466883 #873: Add some corrections and checks. 2019-01-17 11:10:30 +01:00
Ramón M. Gómez cbe824f067 Corrections in changelog file. 2019-01-16 14:02:57 +01:00
Ramón M. Gómez c616aa6bd4 Update list of closed tickets. 2019-01-16 13:31:44 +01:00
Irina Gomez f6b0bf2f6f #802 UEFI Windows compatibility: necessary functions for create and restore images. 2019-01-09 12:47:43 +01:00
Ramón M. Gómez 42c7e5f106 #869: `realpath` command is included in `coreutils` package on Ubuntu 18.04 2018-12-20 14:00:56 +01:00
Ramón M. Gómez 0433dbedba #887: New browser binary. 2018-12-18 12:28:16 +01:00
Ramón M. Gómez 7d77e5f998 #887: Updating Browser locale files. 2018-12-18 11:50:53 +01:00
Ramón M. Gómez 114bb0e87f #783 #887: changes in the Browser code:
* correct log file name;
 * reformating log messages;
 * show error popup when command execution error.
2018-12-18 11:47:05 +01:00
Irina Gomez 522f5bb772 #802 UEFI compatibility: allows postconfigure and log in to Ubuntu. 2018-12-14 11:02:11 +01:00
Ramón M. Gómez 9c2b75c116 #840: Correct error in "oglivecli download" when detecting the new format in ogLive version. 2018-12-13 12:43:15 +01:00
Ramón M. Gómez 2dd6a85a7b #886: Backward-compatible with JQ version 1.4 2018-12-12 14:32:20 +01:00
Ramón M. Gómez b411a0f3eb #886: Backward-compatible with JQ version 1.4 2018-12-12 14:31:12 +01:00
Ramón M. Gómez 01f4ee0ba0 #882: Remove directory-based image. 2018-12-03 09:40:47 +01:00
Ramón M. Gómez 3b8ef0d6e6 #881: Add new variable definitions to the default file. 2018-11-30 11:34:30 +01:00
Ramón M. Gómez 07518803db #881: Add personalization variable for torrents creation priority to default processes file. 2018-11-29 13:48:34 +01:00
Ramón M. Gómez 4f9b004d10 #867: REST API documentacion added to help screen. 2018-11-27 14:01:49 +01:00
Ramón M. Gómez 5f0c2dd54f #879: Checking paths and sizes in update script. 2018-11-26 14:32:06 +01:00
OpenGnSys Support Team de8c4ea749 #878 sendFileMcast now works with more than one server interface 2018-11-26 12:55:19 +01:00
Antonio Doblas Viso 518d4d84f7 #851 fix check parameteres available in udp-receiver 2018-11-25 22:17:55 +00:00
Ramón M. Gómez 59d66700b6 #846: Remove appropiate logrotate files when uninstalling or updating. 2018-11-23 14:41:33 +01:00
Antonio Doblas Viso 4d0694b55c Merge branch 'devel' of opengnsys.es:/opt/git/opengnsys into devel 2018-11-23 12:59:30 +00:00
Ramón M. Gómez 703551b3b7 #877: Copy hosts file on OGAgent activation, and some code cleanup. 2018-11-23 13:08:38 +01:00
Antonio Doblas Viso fdebfdba10 #851 corregida la comprobación del binario udp-receiver y de los
parametros disponibles. Asignar variables internas de la composición del
cliente mcast relacionadas con el parámetro en cuestión.
2018-11-23 11:27:50 +00:00
Irina Gomez 12ad7b2a6f #870 Al entrar en parte administrativa de la consola no se muestra alerta por no tener repositorio (errata). 2018-11-22 13:32:01 +01:00
Ramón M. Gómez 2c5d6a31ed #857: Basic compatibillity notes. 2018-11-22 10:20:15 +01:00
Irina Gomez 7082c6f1a6 #872 Mejora en el log en tiempo real del asistente de particionado. 2018-11-21 14:32:49 +01:00
Ramón M. Gómez 60ea634fed #875: Remove unused field from repositories table and update list of closed tickets. 2018-11-21 13:08:37 +01:00
Ramón M. Gómez b3dfeb6d33 #875: Remove port from repository properties form and alter the database. 2018-11-20 12:52:28 +01:00
Ramón M. Gómez a37e8cbbc4 #840: Updating script {{{checkperms}}} to assign proper permissions. 2018-11-20 09:58:14 +01:00
Irina Gomez 80cbc63d12 #870 Propiedades ordenadores: permite no asignar repositorio al equipo. Árbol de imágenes: se muestran bien las imágenes diferenciales de un repositorio borrado. 2018-11-20 09:38:59 +01:00
Ramón M. Gómez 532b3517f7 #873: Rearrange script code and fix SQL sentences. 2018-11-16 18:05:52 +01:00
Ramón M. Gómez bce19109d1 #873: Updating database image info when local repo is also configured as admin server. 2018-11-16 12:32:37 +01:00