Revision c30f0667

View differences:

chunker_player/tcp_chunk_puller.c
87 87
    
88 88
    while(isRunning)
89 89
    {
90
		printf("trying to accept connection...\n");
90
		printf("TCP-INPUT-MODULE: waiting for connection...\n");
91 91
		fd = accept(accept_fd, NULL, NULL);
92
		printf("connection requested!!!\n");
93 92
		if (fd < 0) {
94 93
			perror("TCP-INPUT-MODULE: accept error");
95 94
			continue;
96 95
		}
96
		printf("TCP-INPUT-MODULE: accept: fd =%d\n", fd);
97 97
		if(socket_fd == -1)
98 98
		{
99 99
			socket_fd = fd;
......
102 102
		else
103 103
		{
104 104
			isReceving = 0;
105
			printf("TCP-INPUT-MODULE: waiting for receive thread to terminate...\n");
105 106
			pthread_join(RecvThread, NULL);
106 107
			pthread_detach(RecvThread);
108
			printf("TCP-INPUT-MODULE: receive thread terminated\n");
107 109
			socket_fd = fd;
108 110
		}
109 111
		if(pthread_create( &RecvThread, NULL, &RecvThreadProc, NULL) != 0)

Also available in: Unified diff