Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 18:23, 2 October 2007.

Reading AP(Access Point) Table

From Forum Nokia Wiki

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
Access point problem in N95 Superior General Symbian C++ 6 2007-09-30 22:59
Access point problem in N95 Superior Symbian Networking & Messaging 2 2007-06-05 07:05
Leave occuring in second table creation for database! hclemson General Symbian C++ 1 2005-07-04 11:48
Why "Service" in 3650 can not recognize Access Point imasrur General Browsing 1 2003-04-14 13:07
gprs example silviuccia Symbian Networking & Messaging 2 2007-10-29 16:29
 
Powered by MediaWiki