listen(server_socketTCP,MAX_QUEUE);//si hay mas de 20 encolados, se descartan las solicitudes nuevas
if(server_socketTCP==-1){
...
...
@@ -112,7 +113,7 @@ void controlVideo(int socket_to_clientTCP,int id_cliente, int &comunicacion[], M
boolinicializado=false;
if(intpthread_create(&hilo_stream,NULL,streamVideo(id_cliente,frame,cap,encoded,comunicacion,pausa,finalizar,client_addr,client_addr_size,inicializado),NULL)!=0)perror("No se pudo enviar el video");//separo thread (idcliente, udp)
intaux=1;
chardata;
while(aux!=5){
//primitiva RECEIVE
...
...
@@ -130,10 +131,13 @@ void controlVideo(int socket_to_clientTCP,int id_cliente, int &comunicacion[], M