How do I go about creating a socket based status reporting system for an AIR app?
What I have in mind, is you connect to the app via socket connection with some sort of terminal. It presents you with a list of options, you issue commands back, and it reports back any stats and messages.
(This is for an app running on a remote kiosk, connected via 3G.)
Use a ServerSocket and listen for connections. Add the onConnect listener to tell when a client has connected and use the ProgressEvent to tell when the client has sent data over the socket. Here are two tutorials and an excerpt on how to get started with a ServerSocket:
Basic.
More complex example which accepts client data transfer.