LinuxQuestions.org
Register a domain and help support LQ
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 03-11-2009, 07:29 AM   #1
rakesh.n
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Rep: Reputation: 0
how to get system network interfaces using qt3 code or programming


Hai ,
i am new to linux....and also qt...how to get networkinterface card in using qt programming that means any function..to call a network adapters for displaying a combobox list..
pls help me....
 
Old 03-11-2009, 02:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by rakesh.n View Post
Hai ,
i am new to linux....and also qt...how to get networkinterface card in using qt programming that means any function..to call a network adapters for displaying a combobox list..
pls help me....
Ok, post what you've written so far, and we can help. The standard Linux command for displaying network interfaces is ifconfig.

You don't say what version/distro of Linux you're using, or what you're having problems with. Hard to be more helpful.
 
Old 03-11-2009, 03:13 PM   #3
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
You can do a system call and sending the output to a text file in a known location. Then parse that file with fgets and strtok and other appropriate function to sort out the required data. The following source line would create a text file containing "hello" in the applications local directory:
Quote:
system ("echo \"hello\" > ./outfile");
And here's the man page start section:
Quote:
NAME
system - execute a shell command

SYNOPSIS
#include <stdlib.h>

int system(const char *command);
Arch Linux

Last edited by T74marcell; 03-14-2009 at 02:08 AM.
 
Old 03-12-2009, 12:15 AM   #4
rakesh.n
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for ur answers.i am asking how to retrive network adapters list in using qt programming...i know the general ifconfig command for networking.i am asking using qt3 programming how to retrive network adapters..
pls help me any one
 
Old 03-12-2009, 02:57 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by rakesh.n View Post
Thanks for ur answers.i am asking how to retrive network adapters list in using qt programming...i know the general ifconfig command for networking.i am asking using qt3 programming how to retrive network adapters..
pls help me any one
As I said in my first post: POST WHAT YOU'VE WRITTEN SO FAR. We can help you from there.

Also, spell out your words...
 
Old 03-12-2009, 03:35 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
afaik there's no qt3 wrapper for that. For qt4 there is a class "QNetworkInterfaces" but I've never used or tested it.
 
  


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
how to get system network adapter list in using qt3 programing rakesh.n Linux - Newbie 1 03-11-2009 01:57 PM
how to get system network adapter list in using qt3 programing rakesh.n Linux - Newbie 2 03-11-2009 07:20 AM
URGENT:: System Call to find out all the active network interfaces mghiya Programming 5 02-14-2006 04:50 PM
Where to get Linux Network Programming Interfaces information... microtrance Programming 1 11-10-2003 09:37 PM


All times are GMT -5. The time now is 09:01 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