I'm was a web application developer for years. I'm dabbling in programming in a dialog/event environment by writing an app on my AT&T tilt(PPC). big change for me.
I wrote a simple app on my tilt that connects to a server, gets data, and updates some controls with the data. This server will send data about things that change as time goes on. The way I currently have the client program, when the user selects "connect" it will connect, get a snapshot of the data, then log off. then it calls the report screen and updates the dialog controls. To get changes, you have to press the connect button again. It is working to this point!
I need to find out how to code this so the socket will stay open, and somehow I'm notified when data is received on that socket, so that I can recv the data and reprocess it. This is above my skill and my googling isnt finding much on how to do this, especially in a PPC environment. I've wrote this using MS Visual Sudio 8 using C++. It's a very simple application.
So long story short, is there some code sample or example somewhere that shows me how to leave a socket open and be notified when data is coming in?
Thank you!