Changeset 84:cd538d13337e in roaraudio for roard/clients.c
- Timestamp:
- 07/12/08 21:55:02 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r78 r84 135 135 if ( fh > max_fh ) 136 136 max_fh = fh; 137 } else {138 139 140 141 142 143 144 145 146 }137 } 138 139 for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 140 if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 141 FD_SET(fh, &r); 142 143 if ( fh > max_fh ) 144 max_fh = fh; 145 } 146 //printf("D: client=%i, stream=%i, fh=%i\n", i, j, fh); 147 147 } 148 148 … … 166 166 } 167 167 168 if ( FD_ISSET(fh, &e) ) 168 if ( FD_ISSET(fh, &e) ) { 169 169 clients_delete(i); 170 } else { 171 for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 172 if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 173 if ( FD_ISSET(fh, &r) ) { 174 streams_check(g_clients[i]->streams[j]); 175 } 170 continue; 171 } 172 } 173 174 if ( g_clients[i] == NULL ) 175 continue; 176 177 for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 178 //printf("D: client=%i, stream=%i, g_clients[i=%i] = %p\n", i, j, i, g_clients[i]); 179 if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 180 if ( FD_ISSET(fh, &r) ) { 181 streams_check(g_clients[i]->streams[j]); 176 182 } 177 183 }
Note: See TracChangeset
for help on using the changeset viewer.