Changeset 3375 for trunk/oscam-reader.c
- Timestamp:
- 10/04/10 18:06:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-reader.c
r3374 r3375 87 87 fd_set fds; 88 88 int rc; 89 90 if (!client[cs_idx].pfd) return(-1); 89 struct s_client *cl = &client[reader->cidx]; 90 91 if (!cl->pfd) return(-1); 91 92 tv.tv_sec = msec/1000; 92 93 tv.tv_usec = (msec%1000)*1000; 93 94 FD_ZERO(&fds); 94 FD_SET(cl ient[cs_idx].pfd, &fds);95 select(cl ient[cs_idx].pfd+1, &fds, 0, 0, &tv);95 FD_SET(cl->pfd, &fds); 96 select(cl->pfd+1, &fds, 0, 0, &tv); 96 97 rc=0; 97 if (FD_ISSET(cl ient[cs_idx].pfd, &fds))98 if (!(rc=reader->ph.recv( buf, l)))98 if (FD_ISSET(cl->pfd, &fds)) 99 if (!(rc=reader->ph.recv(cl, buf, l))) 99 100 rc=-1; 100 101 … … 296 297 uchar dcw[16]; 297 298 298 if ((n=casc_recv_timer( reader, buf, sizeof(buf), w))<=0)299 if ((n=casc_recv_timer(&client[reader->cidx], buf, sizeof(buf), w))<=0) 299 300 { 300 301 if (reader->ph.type==MOD_CONN_TCP && reader->typ != R_RADEGAST)
Note:
See TracChangeset
for help on using the changeset viewer.