Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Question about asynchronous communication

Started 1 month ago by Janci
Hello I have a problem and I am looking for an advice. I have this code and it works fine. I do not understand why this function works, when I did not define the variable station (var station). After reading is in this variable what I need and it works fine. But problem is that I need to call this function in scheduleAfter and there is an error variable station not define. When I define ...
Site: RC Forums: Index of All Universal Remote Control & Home Theater Forums  RC Forums: Index of All Universal Remote Control & Home Theater Forums - site profile
Forum: Philips Pronto Professional  Philips Pronto Professional - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: remotecentral.com

Other posts in this thread:

Sogliphy replied 1 month ago
'station' only gets assigned a value after the onConnect and onData callbacks are invoked, which is not immediately after the call to socket.connect(), so at the point where you are converting 'station' to an array, 'station' is not yet defined. After invoking "GetTuner()", the TCP socket will be connecting, but onConnect and onData will only get called later on, so GetTuner() cannot ...

multimedia replied 1 month ago
Very nice example. I believe that everyone who tried to experience callback functions will fall at least once in this kind of trap...

Janci replied 3 weeks ago
I would like to ask you, why did you cancel return from function? I call many times this function and I need returning value. It is not this function only for RDS label, but it also others. This code work fine, but I had the value only when I use System.print("stationOk is" + stationOk); but there was not any value in RDS.label, it was written undefienied. The result of my problem is that I ...

 

Top contributing authors

Name
Posts
Janci
2
user's latest post:
Question about asynchronous...
Published (2009-11-26 15:06:00)
I would like to ask you, why did you cancel return from function? I call many times this function and I need returning value. It is not this function only for RDS label, but it also others. This code work fine, but I had the value only when I use System.print("stationOk is" + stationOk); but there was not any value in RDS.label, it was written undefienied. The result of my problem is that I need returning value from function. I hope...
Sogliphy
1
user's latest post:
Question about asynchronous...
Published (2009-11-16 03:51:00)
'station' only gets assigned a value after the onConnect and onData callbacks are invoked, which is not immediately after the call to socket.connect(), so at the point where you are converting 'station' to an array, 'station' is not yet defined. After invoking "GetTuner()", the TCP socket will be connecting, but onConnect and onData will only get called later on, so GetTuner() cannot immediately return...
multimedia
1
user's latest post:
Question about asynchronous...
Published (2009-11-17 15:30:00)
Very nice example. I believe that everyone who tried to experience callback functions will fall at least once in this kind of trap...

Related threads on "RC Forums: Index of All Universal Remote Control & Home Theater Forums":

Related threads on other sites:

Thread profile page for "Question about asynchronous communication" on http://www.remotecentral.com. This report page is a snippet summary view from a single thread "Question about asynchronous communication", located on the Message Board at http://www.remotecentral.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity