All pastes #88159 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-07-14 16:06 UTC
rendered paste body
	while (select (FD_SETSIZE, &read_fd_set, NULL, NULL, &tv))
	{
		for (f=0; f<FD_SETSIZE; ++f)
		{
			if (FD_ISSET (f, &read_fd_set))
			{
				while (!feof(stream_in)) {
				fscanf(stream_in, "%s", http_response);
				printf ("DATA: '%s'\n", http_response);
				fprintf (savefile, "%s", http_response); 
				}
				printf("end stream\n");
			}
		}
		read_fd_set = active_fd_set;
	}
	printf ("timeout\n");