Take the 2-minute tour ×

I just noticed that Textual neatly reconnects me back to any IRC servers I have configured as soon as a network connection becomes available.

How can an application be signaled that a connection is up and running? I'm half-guessing/half-hoping the client isn't forced to constantly poll and is able to receive a signal/event instead.

How is it done?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the SCNetworkReachability class for this.

share|improve this answer
Spot on, thank you. –  ntl0ve May 17 '12 at 17:04

Your Answer


