#160340 - ragefury32 - Mon Jul 14, 2008 6:08 am
Okay - so I have figured out (somewhat) of how to use WifiAutoConnect to make a connection via DSWifi, but I am having problems with one aspect of socket programming in the DS - how to create a background task.
So let me explain what I am trying to do - I am trying to hit a web service with a parameter, something like:
GET webapp/dynamic/streamlocations?userid=1123
And it'll push me a set of values automatically once every second until I close the connection.
Here's the question - how would I make the NDS automatically retrieve this information, store it, and allow other things to happen? I mean, I could make a timer interrupt on the NDS end wake up every second or so, do a connect() and retrieve the results, but the data is already automatically streamed to me. Is there a way to have something in the background pick up the data off a stream without intervention?
So let me explain what I am trying to do - I am trying to hit a web service with a parameter, something like:
GET webapp/dynamic/streamlocations?userid=1123
And it'll push me a set of values automatically once every second until I close the connection.
Here's the question - how would I make the NDS automatically retrieve this information, store it, and allow other things to happen? I mean, I could make a timer interrupt on the NDS end wake up every second or so, do a connect() and retrieve the results, but the data is already automatically streamed to me. Is there a way to have something in the background pick up the data off a stream without intervention?