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, 12:01:06 PM (16 years ago)
- Author:
-
adv
- Comment:
-
Correción pruebas auxiliares p2p multicast
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v8
|
v9
|
|
59 | 59 | |
60 | 60 | |
61 | | = Pruebas externas para el soporte de transferencias multicast y torrent. = |
| 61 | = SIMPLE INFORMACION, no testeado en opengnsys: Pruebas auxiliares para el soporte de transferencias multicast y torrent. = |
62 | 62 | * Servidor Multicast |
63 | 63 | {{{ |
64 | | system("/usr/sbin/udp-sender --file " . $fila['parametros'] . " --" . McastMethod . " --fec " . McastControlError . " --max-bitrate " . McastMaxBitrate . " --ttl 1 --min-clients " . McastNumberClients . " --max-wait " . McastTimeWaitForAllClients . ""); |
| 64 | export McastAddress="239.172.16.72" |
| 65 | export McastMethod="full-duplex" # full-duplex, half-duplex or broadcast |
| 66 | export McastMaxBitrate="70M" |
| 67 | export McastControlError="8x8/128" |
| 68 | export McastNumberClients=90 |
| 69 | export McastTimeWaitForAllClients=360 |
| 70 | udp-sender --file /opt/opengnsys/NuevaImagen1.img --${McastMethod} --fec $McastControlError --max-bitrate $McastMaxBitrate --ttl 1 --min-clients $McastNumberClients --max-wait $McastTimeWaitForAllClients |
65 | 71 | }}} |
66 | 72 | |
… |
… |
|
69 | 75 | {{{ |
70 | 76 | CACHE=`ogMountCache` |
71 | | udp-receiver -p "mbuffer -m 20M " --file $CACHE; |
| 77 | udp-receiver -p "mbuffer -m 20M " --file ${CACHE}\NuevaImagen1.img; #nota -p "mbuffer -m 20M" es opcional |
72 | 78 | }}} |
73 | 79 | |
74 | 80 | Servidor Torrent |
75 | 81 | {{{ |
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"); |
| 82 | #Paso 1: Crear metainfo (.torrent) del la imagen. |
| 83 | IPTorrent= #IP del equipo donde almacena la imagen a exportar. |
| 84 | ctorrent -t /opt/opengnsys/images/NuevaImagen1.img -u http://$IPTorrent:1234/announce -s " . /opt/opengnsys/images/NuevaImagen1.img.torrent |
| 85 | #Paso 2: iniciar track |
| 86 | bttrack --reannounce_interval 10 --port 1234 --dfile /root/dstate --logfile /root/bttracker.log --save_dfile_interval 10 --timeout_downloaders_interval 10 2>/dev/null & |
| 87 | #paso 3: iniciar la semilla de la imagen en el server |
| 88 | ctorrent /opt/opengnsys/images/NuevaImagen.img.torrent -d |
81 | 89 | }}} |
82 | 90 | |