close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
- Timestamp:
-
Nov 11, 2009, 11:44:00 AM (17 years ago)
- Author:
-
adv
- Comment:
-
Incio pruebas testeo multicast y p2p
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 59 | 59 | |
| 60 | 60 | |
| | 61 | = Pruebas externas para el soporte de transferencias multicast y torrent. = |
| | 62 | * Servidor Multicast |
| | 63 | {{{ |
| | 64 | system("/usr/sbin/udp-sender --file " . $fila['parametros'] . " --" . McastMethod . " --fec " . McastControlError . " --max-bitrate " . McastMaxBitrate . " --ttl 1 --min-clients " . McastNumberClients . " --max-wait " . McastTimeWaitForAllClients . ""); |
| | 65 | }}} |
| | 66 | |
| | 67 | |
| | 68 | * Cliente Multicast |
| | 69 | {{{ |
| | 70 | CACHE=`ogMountCache` |
| | 71 | udp-receiver -p "mbuffer -m 20M " --file $CACHE; |
| | 72 | }}} |
| | 73 | |
| | 74 | Servidor Torrent |
| | 75 | {{{ |
| | 76 | Paso 1: Crear metainfo (.torrent) del la imagen. |
| | 77 | exec("ctorrent -t " . $fila['parametros'] . " -u http://" . SQL_HOST . ":1234/announce -s " . $fila['parametros'] . ".torrent "); |
| | 78 | Paso 2: iniciar tracker |
| | 79 | paso 3: iniciar la semilla de la imagen en el server |
| | 80 | system("ctorrent " . $fila['parametros'] . " -d"); |
| | 81 | }}} |
| | 82 | |
| | 83 | |
| | 84 | |
| | 85 | * Cliente Torrent |
| | 86 | {{{ |
| | 87 | TimeToWaitForCloseAfterDownload=20 # tiempo que deseamos que el cliente este como semilla, despues de la descarga. |
| | 88 | CACHE=`ogMountCache` |
| | 89 | ctorrent -X "sleep $TimeToWaitForTransfer; pkill ctorrent" /opt/opengnsys/images/NuevaImagen1.torrent -s ${CACHE}/NuevaImagen1 -b ${CACHE}/NuevaImagen1.bf -C 100 |
| | 90 | }}} |
| | 91 | |
| | 92 | |
| | 93 | |