What events get called @ sleep/wake??

Discussion in 'iOS Programming' started by DaveGee, Jul 21, 2008.

  1. DaveGee macrumors 6502a

    Jul 25, 2001
    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...


    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?


Share This Page