 |
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
jbladox
Joined: 29 Jul 2008 Posts: 24
|
Posted: Fri Jun 26, 2009 8:21 pm Post subject: Close spider with timer |
|
|
Hello,
I am trying to write an application that will timeout and close itself after a certain amount of time using a timer.
I am able to properly set up the spider menu, and start the timer properly, but when the timer expires, I am not sure how to stop and close the spider menu. Even just stopping the application is acceptable.
I have tried calling spider() again, which doesn't work ... actually causes the phone to reboot eventually ...
Also, I tried spider_back. But that also doesn't work.
Is it possible to do what I want?
Thank you,
J |
|
Back to top |
|
 |
pz Guest
|
Posted: Tue Jun 30, 2009 10:38 am Post subject: |
|
|
Mmm, if it waits on phone side, i.e. FETCH was done and now you are waiting for TERMINAL_RESPONSE then you can't do it.
If you are in spider_callback then return APP_END. So you have to check some global var keeping timer and based on this either continue with spider flow or APP_END. |
|
Back to top |
|
 |
jbladox
Joined: 29 Jul 2008 Posts: 24
|
Posted: Tue Jun 30, 2009 12:24 pm Post subject: |
|
|
I see. Thank you for your reply, pz.
So that means, if my application is in the middle of a get_input() or msisdn() call, for example, it is not possible to do, right?
Also, that means that at any non-terminal spider node, I won't be able to check the variable, right? (because there's no callback method to check it in?)
If that is the case, is there a way to send a signal to the application? Like SIG_TERM or SIG_KILL, or something?
Thanks in advance,
J |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|