+}
+
+void eDVBCISession::handleClose()
+{
+ unsigned char data[1]={0x00};
+ sendSPDU(0x96, data, 1, 0, 0);
+}
+
+int eDVBCISession::pollAll()
+{
+ for (int session_nb=1; session_nb < SLMS; ++session_nb)
+ if (sessions[session_nb-1])
+ {
+ int r;
+
+ if (sessions[session_nb-1]->state == stateInDeletion)
+ {
+ sessions[session_nb-1]->handleClose();
+ sessions[session_nb-1]=0;
+ r=1;
+ } else
+ r=sessions[session_nb-1]->poll();
+
+ if (r)
+ return 1;
+ }
+ return 0;