LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2009, 03:50 AM   #1
peiweijun
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
How can I scan on a wireless network, and retrival the results?


Hi all !

I need to write a C/C++ application that scans for Wireless networks.
What is the native way for doing this? I mean, not using external tools...
I have a sample that uses iwlist scan that produces the desired output. Is there a way to do this without running this shell command?

Thanks.
 
Old 05-25-2009, 05:53 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally Posted by peiweijun View Post
Hi all !

I need to write a C/C++ application that scans for Wireless networks.
What is the native way for doing this? I mean, not using external tools...
I have a sample that uses iwlist scan that produces the desired output. Is there a way to do this without running this shell command?

Thanks.
On my box, iwlist is a binary:
Code:
win32sux@candystore:~$ file /sbin/iwlist
/sbin/iwlist: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
Wouldn't you just need to look at its source code?
 
Old 05-26-2009, 11:52 PM   #3
peiweijun
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, I can do it now!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iwlist scan - no scan results compu73rg33k Linux - Wireless Networking 6 05-29-2009 03:37 AM
Acer Aspire One Atheros wireless: No scan results Nylex Slackware 23 01-22-2009 02:13 PM
Fedora 8, Wireless can scan network, asks for password, fails to connect. Learn41 Linux - Newbie 2 02-19-2008 09:46 PM
Can Scan for Wireless Network.. view it..but cant connect?! Damien295x Fedora 8 10-14-2006 01:24 AM
Wireless Sis900 network Card iwlist scan not working Arrowx7 Linux - Wireless Networking 7 07-10-2005 02:47 PM


All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration