This page was last modified 14:18, 29 May 2008.
Reading AP(Access Point) Table
From Forum Nokia Wiki
(Redirected from Reading AP(Acccess Point) Table)
void ReadAPTable() { struct ifconf ifc; int sockfd; sockfd = socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); ifc.ifc_len = sizeof(ifreq) * 20; ifc.ifc_buf = (caddr_t)malloc( ifc.ifc_len ); // This will get the whole access points list // Here, ifc.ifc_len will contain the number of access points ret = ioctl(sockfd, SIOCGIFCONF, &ifc); // This will get only the active connection list // Here, ifc.ifc_len will contain the number of active connections ret = ioctl(sockfd, SIOCGIFACTIVECONF, &ifc); close(sockfd); free(ifc.ifc_buf); return; }
The above Open C code shows that, we can either read the whole access points details(SIOCGIFCONF ) or only read active access points details(SIOCGIFACTIVECONF ).
Links
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out? | symbian_ravi | Symbian Networking & Messaging | 10 | 2006-12-22 12:33 |
| mms notification - urgent | sarahang | General Messaging | 4 | 2003-05-14 03:38 |
| Creating a connection via WLAN Ad-Hoc Mode | primal | Symbian Networking & Messaging | 13 | 2008-01-25 00:19 |
| Creating GPRS access point on 3rd edition | michaelemmens | Symbian Networking & Messaging | 0 | 2006-11-24 12:01 |
| Client/Server Communication via Bluetooth access point | cashewnutted | Bluetooth Technology | 0 | 2003-08-06 13:19 |
