title: AFNetworking 2.0. How check reachability status for socket (managerForAddress:)?
body: <p>I install AFNetworking 2.0 with "pod install", and use App.xcworkspace.
  With AFNetworking 2.0 I successfully send POST request, but with reachability I have problem.
  I need to monitor when socket is opened and closed, my code not work, what I forgot?</p>
  
  <pre><code>// Check server socket available
  struct sockaddr_in serverAddr;
  serverAddr.sin_family = AF_INET;
  serverAddr.sin_len = sizeof(serverAddr);
  serverAddr.sin_port = htons(80);
  serverAddr.sin_addr.s_addr = inet_addr("192.168.1.108");
  
  AFNetworkReachabilityManager *reachability = [AFNetworkReachabilityManager managerForAddress:&amp;serverAddr];
  [reachability setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
      switch (status) {
          case AFNetworkReachabilityStatusNotReachable:
              NSLog(@"No Internet Connection");
              break;
          case AFNetworkReachabilityStatusReachableViaWiFi:
              NSLog(@"WIFI");
              break;
          case AFNetworkReachabilityStatusReachableViaWWAN:
              NSLog(@"3G");
              break;
          default:
              NSLog(@"Unknown network status");
              break;
      }
  }];
  [reachability startMonitoring];
  </code></pre>