Changeset 4034
- Timestamp:
- 12/03/10 08:57:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r4033 r4034 2673 2673 2674 2674 struct cc_card *card = create_card(NULL); 2675 card->remote_id = rdr->cc_id>>24|rdr->cc_id>>16|j>>8|j&0xFF;2675 card->remote_id = (rdr->cc_id>>24)|(rdr->cc_id>>16)|(j>>8)|(j&0xFF); 2676 2676 card->caid = caid; 2677 2677 card->hop = hop; … … 3250 3250 while (cl->pfd) 3251 3251 { 3252 i = process_input(mbuf, sizeof(mbuf), 10); //cfg->cmaxidle);3252 i = process_input(mbuf, sizeof(mbuf), 10); 3253 3253 if (i == -9) { 3254 3254 cmi += 10; 3255 if (c fg->cmaxidle && cmi >= cfg->cmaxidle) {3255 if (cmi >= cfg->cmaxidle) { 3256 3256 cmi = 0; 3257 if (!cl->ncd_keepalive && !cfg->cc_keep_connected) { 3258 cs_debug_mask(D_TRACE, "%s keepalive after maxidle is reached", 3259 getprefix()); 3260 break; //Disconnect client 3261 } 3262 else if (cc->extended_mode) //special handling for "oscam"-cccam clients: 3263 { 3257 if (cfg->cc_keep_connected && cc->extended_mode && !wait_for_keepalive) { //special handling for "oscam"-cccam clients: 3264 3258 if (cc_cmd_send(cl, NULL, 0, MSG_KEEPALIVE) < 0) 3265 3259 break; … … 3268 3262 wait_for_keepalive = 1; 3269 3263 continue; 3264 } else { 3265 cs_debug_mask(D_TRACE, "%s keepalive after maxidle is reached", 3266 getprefix()); 3267 break; //Disconnect client 3270 3268 } 3271 3269 }
Note:
See TracChangeset
for help on using the changeset viewer.