![]() |
OpenGnsys
1.1.1
|
Librería o clase Protocol #. Más...
Ir al código fuente de este archivo.
Funciones | |
function | ogUcastSyntax () |
Función para generar la instrucción de transferencia de datos unicast #. Más... | |
function | ogUcastSendPartition () |
Función para enviar el contenido de una partición a multiples particiones remotas usando UNICAST. #. Más... | |
function | ogUcastReceiverPartition () |
Función para recibir directamente en la partición el contenido de un fichero imagen remoto enviado por UNICAST. #. Más... | |
function | ogUcastSendFile () |
Envía un fichero por unicast ORIGEN(fichero) DESTINO(sessionmulticast) #. Más... | |
function | ogMcastSyntax () |
Función para generar la instrucción de ejucción la transferencia de datos multicast #. Más... | |
function | ogMcastSendFile () |
Envía un fichero por multicast ORIGEN(fichero) DESTINO(sessionmulticast) #. Más... | |
function | ogMcastReceiverFile () |
Recibe un fichero multicast ORIGEN(sesionmulticast) DESTINO(fichero) #. Más... | |
function | ogMcastSendPartition () |
Función para enviar el contenido de una partición a multiples particiones remotas. #. Más... | |
function | ogMcastReceiverPartition () |
Función para recibir directamente en la partición el contenido de un fichero imagen remoto enviado por multicast. #. Más... | |
function | ogMcastRequest () |
Función temporal para solicitar al ogRepoAux el envio de un fichero por multicast #. Más... | |
function | ogTorrentStart () |
Función iniciar P2P - requiere un tracker para todos los modos, y un seeder para los modos peer y leecher y los ficheros .torrent. #. Más... | |
function | ogCreateTorrent () |
Función para crear el fichero torrent. #. Más... | |
function | ogUpdateCacheIsNecesary () |
Comprueba que el fichero que se desea almacenar en la cache del cliente, no esta. #. Más... | |
Descripción detallada
Documentación de las funciones
function ogCreateTorrent | ( | ) |
Función para crear el fichero torrent. #.
ogCreateTorrent [ str_repo | int_ndisk int_npart ] Relative_path_file
#
- Parámetros
-
str_pathDirectory str_Relative_path_file # int_disk int_partition str_Relative_path_file # str_REPOSITORY(CACHE - LOCAL) str_Relative_path_file #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT Formato incorrecto. # OG_ERR_NOTFOUND Disco o particion no corresponden con un dispositivo. # OG_ERR_PARTITION Tipo de partición desconocido o no se puede montar. # OG_ERR_NOTOS La partición no tiene instalado un sistema operativo. #
- Nota
#
- Versión
0.1 - Integración para OpenGNSys. #
- Fecha
#
- Versión
0.2 - Integración para btlaunch. #
- Fecha
Definición en la línea 1045 del archivo Protocol.lib.
Hace referencia a ctorrent(), ogFindCache(), ogGetImageType(), ogGetPath(), ogHelp() y ogRaiseError().

function ogMcastReceiverFile | ( | ) |
Recibe un fichero multicast ORIGEN(sesionmulticast) DESTINO(fichero) #.
ogMcastReceiverFile sesion Multicast [ str_repo | int_ndisk int_npart ] /Relative_path_file
#
- Parámetros
-
(2 parámetros) $1 sesionMcastCLIENT $2 path_aboluto_fichero_destino # (3 parámetros) $1 sesionMcastCLIENT $2 Contenedor REPO|CACHE $3 path_absoluto_fichero_destino # (4 parámetros) $1 sesionMcastCLIENT $2 disk $3 particion $4 path_absoluto_fichero_destino #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT formato incorrecto. # $OG_ERR_MCASTRECEIVERFILE #
- Nota
Requisitos: #
- Versión
- 1.0 - Definición de Protocol.lib #
- Fecha
- 2010/05/09
Definición en la línea 661 del archivo Protocol.lib.
Hace referencia a ogHelp(), ogMcastSyntax() y ogRaiseError().

function ogMcastReceiverPartition | ( | ) |
Función para recibir directamente en la partición el contenido de un fichero imagen remoto enviado por multicast. #.
ogMcastReceiverPartition
#
- Parámetros
-
1 disk # 2 partition # 3 session multicast # 4 tool clone # 5 tool compressor #
- Devuelve
#
- Excepciones
-
$OG_ERR_FORMAT #
- Nota
#
- Versión
- 1.0 - Definición de Protocol.lib #
- Fecha
- 2010/05/09
Definición en la línea 783 del archivo Protocol.lib.
Hace referencia a ogDiskToDev(), ogHelp(), ogIsLocked(), ogMcastSyntax(), ogRaiseError() y ogUnmount().

function ogMcastRequest | ( | ) |
Función temporal para solicitar al ogRepoAux el envio de un fichero por multicast #.
ogMcastRequest
#
- Parámetros
-
1 Fichero a enviar ubicado en el REPO. puede ser ruta absoluta o relatica a /opt/opengnsys/images # 2 PROTOOPT opciones protocolo multicast #
- Devuelve
#
- Excepciones
-
#
Definición en la línea 836 del archivo Protocol.lib.
Hace referencia a ogGetRepoIp(), ogHelp() y ogRaiseError().

function ogMcastSendFile | ( | ) |
Envía un fichero por multicast ORIGEN(fichero) DESTINO(sessionmulticast) #.
ogMcastSendFile [ str_repo | int_ndisk int_npart ] /Relative_path_file sessionMulticast
#
- Parámetros
-
(2 parámetros) $1 path_aboluto_fichero $2 sesionMcast # (3 parámetros) $1 Contenedor REPO|CACHE $2 path_absoluto_fichero $3 sesionMulticast # (4 parámetros) $1 disk $2 particion $3 path_absoluto_fichero $4 sesionMulticast #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT formato incorrecto. # $OG_ERR_NOTFOUND # OG_ERR_MCASTSENDFILE #
- Nota
Requisitos: #
- Versión
- 1.0 - Definición de Protocol.lib #
- Fecha
- 2010/05/09
Definición en la línea 578 del archivo Protocol.lib.
Hace referencia a ogGetPath(), ogHelp(), ogMcastSyntax() y ogRaiseError().

function ogMcastSendPartition | ( | ) |
Función para enviar el contenido de una partición a multiples particiones remotas. #.
ogMcastSendPartition
#
- Parámetros
-
1 disk # 2 partition # 3 session multicast # 4 tool clone # 5 tool compressor #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT # OG_ERR_MCASTSENDPARTITION #
- Nota
#
- Tareas pendientes:
: ogIsLocked siempre devuelve 1. crear ticket #
- Versión
- 1.0 - Definición de Protocol.lib #
- Fecha
- 2010/05/09
Definición en la línea 732 del archivo Protocol.lib.
Hace referencia a ogDiskToDev(), ogHelp(), ogIsLocked(), ogMcastSyntax(), ogRaiseError() y ogUnmount().

function ogMcastSyntax | ( | ) |
Función para generar la instrucción de ejucción la transferencia de datos multicast #.
ogMcastSyntax
#
- Parámetros
-
1 Tipo de operación [ SENDPARTITION RECEIVERPARTITION SENDFILE RECEIVERFILE ] # 2 Sesión Mulicast # 3 Dispositivo (opción PARTITION) o fichero(opción FILE) que será enviado. # 4 Tools de clonación (opcion PARTITION) # 5 Tools de compresion (opcion PARTITION) #
- Devuelve
instrucción para ser ejecutada. #
- Excepciones
-
OG_ERR_FORMAT formato incorrecto. # OG_ERR_NOTEXEC # OG_ERR_MCASTSYNTAXT #
- Nota
Requisitos: upd-cast 2009 o superior #
- Tareas pendientes:
localvar check versionudp #
- Versión
1.0 - #
- Fecha
2010/05/09 #
- Versión
2.0 - cambios en udp-receiver para permitir multicast entre subredes #
- Fecha
2015/11/17 #
- Versión
1.1 - Control de errores en transferencia multicast (ticket #781) #
- Fecha
2017/04/20 #
- Versión
1.1.0.a - Parametros de clientes como sesision de multicast (ticket #851) #
- Fecha
- 2018/09/22
Definición en la línea 346 del archivo Protocol.lib.
Hace referencia a awk(), mbuffer(), ogCheckIpAddress(), ogCheckStringInGroup(), ogCheckStringInReg(), ogCreateImageSyntax(), ogHelp(), ogRaiseError() y ogRestoreImageSyntax().
Referenciado por ogMcastReceiverFile(), ogMcastReceiverPartition(), ogMcastSendFile() y ogMcastSendPartition().

function ogTorrentStart | ( | ) |
Función iniciar P2P - requiere un tracker para todos los modos, y un seeder para los modos peer y leecher y los ficheros .torrent. #.
ogTorrentStart [ str_repo | int_ndisk int_npart ] Relative_path_file.torrent | SessionProtocol
#
- Parámetros
-
str_pathDirectory str_Relative_path_file # int_disk int_partition str_Relative_path_file # str_REPOSITORY(CACHE - LOCAL) str_Relative_path_file # (2 parámetros) $1 path_aboluto_fichero_torrent $2 Parametros_Session_Torrent # (3 parámetros) $1 Contenedor CACHE $2 path_absoluto_fichero_Torrent $3 Parametros_Session_Torrent # (4 parámetros) $1 disk $2 particion $3 path_absoluto_fichero_Torrent 4$ Parametros_Session_Torrent #
- Devuelve
#
- Nota
- protocoloTORRENT=mode:time mode=seeder -> Dejar el equipo seedeando hasta que transcurra el tiempo indicado o un kill desde consola, mode=peer -> seedear mientras descarga mode=leecher -> NO seedear mientras descarga time tiempo que una vez descargada la imagen queremos dejar al cliente como seeder. #
- Versión
0.1 - Integración para OpenGNSys. #
- Fecha
#
- Versión
0.2 - Chequeo del tamaño de imagen descargado. #
- Fecha
#
- Versión
0.3 - Control de los modos de operación, y estado de descarga. #
- Fecha
#
- Versión
0.4 - Enviadando señal (2) a ctorrent permiendo la comunicación final con tracker #
- Fecha
Definición en la línea 900 del archivo Protocol.lib.
Hace referencia a awk(), ctorrent(), ogCheckStringInGroup(), ogCheckStringInReg(), ogGetPath(), ogHelp() y ogRaiseError().

function ogUcastReceiverPartition | ( | ) |
Función para recibir directamente en la partición el contenido de un fichero imagen remoto enviado por UNICAST. #.
ogUcastReceiverPartition
#
- Parámetros
-
1 disk # 2 partition # 3 session unicast #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT # OG_ERR_UCASTRECEIVERPARTITION #
- Nota
#
- Versión
1.0 - Integración para OpenGNSys. #
- Fecha
- 2011/03/09
Definición en la línea 204 del archivo Protocol.lib.
Hace referencia a ogDiskToDev(), ogHelp(), ogIsLocked(), ogRaiseError(), ogUcastSyntax() y ogUnmount().

function ogUcastSendFile | ( | ) |
Envía un fichero por unicast ORIGEN(fichero) DESTINO(sessionmulticast) #.
ogUcastSendFile [ str_repo | int_ndisk int_npart ] /Relative_path_file sessionMulticast
#
- Parámetros
-
(2 parámetros) $1 path_aboluto_fichero $2 sesionMcast # (3 parámetros) $1 Contenedor REPO|CACHE $2 path_absoluto_fichero $3 sesionMulticast # (4 parámetros) $1 disk $2 particion $3 path_absoluto_fichero $4 sesionMulticast #
- Devuelve
#
- Excepciones
-
OG_ERR_FORMAT formato incorrecto. # $OG_ERR_NOTFOUND # OG_ERR_UCASTSENDFILE #
- Nota
Requisitos: #
- Versión
- 1.0 - Definición de Protocol.lib #
- Fecha
- 2010/05/09
Definición en la línea 255 del archivo Protocol.lib.
Hace referencia a ogGetPath(), ogHelp(), ogRaiseError() y ogUcastSyntax().

function ogUcastSendPartition | ( | ) |
Función para enviar el contenido de una partición a multiples particiones remotas usando UNICAST. #.
ogUcastSendPartition
#
- Parámetros
-
1 disk # 2 partition # 3 sesionUcast # 4 tool image # 5 tool compresor #
- Devuelve
#
- Excepciones
-
$OG_ERR_FORMAT # $OG_ERR_UCASTSENDPARTITION #
- Nota
#
- Tareas pendientes:
: ogIsLocked siempre devuelve 1 #
- Versión
1.0 - #
- Fecha
- 2011/03/09
Definición en la línea 154 del archivo Protocol.lib.
Hace referencia a ogDiskToDev(), ogHelp(), ogIsLocked(), ogRaiseError(), ogUcastSyntax() y ogUnmount().

function ogUcastSyntax | ( | ) |
Función para generar la instrucción de transferencia de datos unicast #.
ogUcastSyntax
#
- Parámetros
-
1 Tipo de operación [ SENDPARTITION RECEIVERPARTITION SENDFILE RECEIVERFILE ] # 2 Sesion Unicast # 3 Dispositivo (opción PARTITION) o fichero(opción FILE) que será enviado. # 4 Tools de clonación (opcion PARTITION) # 5 Tools de compresion (opcion PARTITION) #
- Devuelve
instrucción para ser ejecutada. #
- Excepciones
-
OG_ERR_FORMAT formato incorrecto. # OG_ERR_UCASTSYNTAXT formato de la sesion unicast incorrecta. #
- Nota
Requisitos: mbuffer #
- Tareas pendientes:
: controlar que mbuffer esta disponible para los clientes. #
- Versión
1.0 - #
- Fecha
- 2011/03/09
Definición en la línea 32 del archivo Protocol.lib.
Hace referencia a awk(), ogCheckStringInGroup(), ogCreateImageSyntax(), ogHelp(), ogRaiseError() y ogRestoreImageSyntax().
Referenciado por ogUcastReceiverPartition(), ogUcastSendFile() y ogUcastSendPartition().

function ogUpdateCacheIsNecesary | ( | ) |
Comprueba que el fichero que se desea almacenar en la cache del cliente, no esta. #.
ogUpdateCacheIsNecesary [ str_repo ] Relative_path_file_OGIMG_with_/
#
- Parámetros
-
1 str_REPO # 2 str_Relative_path_file_OGIMG_with_/ # 3 md5 to check: use full to check download image torrent #
- Devuelve
- >1 (false) error de sintaxis (TODO) #
0 (true) cache sin imagen, SI es necesario actualizar el fichero. #
1 (false) imagen en la cache, NO es necesario actualizar el fichero #
- Nota
#
- Tareas pendientes:
: Proceso en el caso de que el fichero tenga el mismo nombre, pero su contenido sea distinto. #
: Se dejan mensajes mientras se confirma su funcionamiento. #
- Versión
0.1 - Integracion para OpenGNSys. #
- Fecha
#
- Versión
1.6 - gestiona ficheros hash full.sum (TORRENT) y .sum (MULTICAST) #
- Fecha
Definición en la línea 1115 del archivo Protocol.lib.
Hace referencia a ogCalculateChecksum(), ogCalculateFullChecksum(), ogCheckStringInGroup(), ogDeleteFile(), ogFindCache(), ogGetPath(), ogHelp() y ogRaiseError().

Generado por TracDoxygen 0.7.5 &
