Evolve Stage 2

So what is the best way to make sure the user is connected? My desktop app may be used offline for the most part but will need to get/send data periodically, and if not connected, it will hold onto the data and shoot it up once connected