how to display the name of wifi AP using reachability wifi example on iphone
<p>i want to display the infomation of my WIFI AP to which i am connected , how to do that ???</p>

<pre><code>+ (Reachability*) reachabilityForLocalWiFi;
{//NSLog(@"cheking all addresss ");
    struct sockaddr_in localWifiAddress;

    bzero(&amp;localWifiAddress, sizeof(localWifiAddress));
    localWifiAddress.sin_len = sizeof(localWifiAddress);
    localWifiAddress.sin_family = AF_INET;
    //NSLog(@"Destination%@",localWifiAddress.sin_len);

    // IN_LINKLOCALNETNUM is defined in &lt;netinet/in.h&gt; as 169.254.0.0
    localWifiAddress.sin_addr.s_addr = htonl(IN_LINKLOCALNETNUM);
    Reachability* retVal = [self reachabilityWithAddress: &amp;localWifiAddress];

    if(retVal!= NULL)
    {
        retVal-&gt;localWiFiRef = YES;

        //printf("%i",localWifiAddress);
    }
    return retVal;
}
</code></pre>
