Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DaveGee

macrumors 6502a
Original poster
Subject line pretty much says it all... I have a program that creates a thread and in that thread keeps an async soap connection open and gets status messages from a device on my network... it works real well until the device goes to seep at which point that async connection gets dropped... It's okay I don't mind that but I'd like to do the right thing...

in an event that fires just prior to the device going to sleep I want to close the connection properly and kill the thread I spawned...

THEN

in an even that fires just after the device wakes up I wanna build a new connection (and spin it off in its own thread)...

Does anyone know what events I need to use to do this?

Dave
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.