Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ネットワーク接続が利用可能になるとすぐに、 Textualが設定した IRC サーバーにきちんと再接続することに気付きました。
接続が稼働中であることをアプリケーションに通知するにはどうすればよいですか? 私は、クライアントが常にポーリングすることを強制されておらず、代わりにシグナル/イベントを受信できることを半分推測/半分望んでいます。
それはどのように行われますか?
SCNetworkReachabilityこれにはクラスを使用できます。
SCNetworkReachability