Want to know the ESSID of wireless network via C++ in UBUNTU

You should set length properly first before using werq, check this, int sockfd; char * id; id = new char[IW_ESSID_MAX_SIZE+1]; struct iwreq wreq; memset(&wreq, 0, sizeof(struct iwreq)); wreq.u.essid.length = IW_ESSID_MAX_SIZE+1; sprintf(wreq.ifr_name, IW_INTERFACE); if((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { fprintf(stderr, “Cannot open socket \n”); fprintf(stderr, “errno = %d \n”, errno); fprintf(stderr, “Error description is … Read more

How can an iPhone access another non-iPhone device over wireless or Bluetooth?

The only way to communicate with other Bluetooth devices via the External Accessory framework in iPhone OS 3.0 is if they are in the Made for iPod accessory program. Even though they communicate through standard Bluetooth connections, accessories need special hardware in order to process the data stream coming from the iPhone / iPod touch. … Read more

Get SSID of the wireless network I am connected to with C# .Net on Windows Vista

I resolved using the library. It resulted to be quite easy to work with the classes provided: First I had to create a WlanClient object wlan = new WlanClient(); And then I can get the list of the SSIDs the PC is connected to with this code: Collection<String> connectedSsids = new Collection<string>(); foreach (WlanClient.WlanInterface wlanInterface … Read more