get network interface information C++ [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am beginner in programming. I work with Eclipse C++ in Linux Ubuntu. I know there is ifconfig command to list network interface info. I want code to get information about a network interface and print this information.
In other words, how can I write the code that performs the ifconfig command with c++?
thanks.

You can get some of the info out of getifaddrs() but there is more to it than that so you have your work cut out. Why not look the source for ifconfig for starters?

Related

how to send data to PC over JTAG/debugger [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am using a PEmicro USB Multilink Universal JTAG.
I have a Cortex M4 processor running a custom C++ RTOS with no filesystem.
I need to trace execution of some functions to debug a problem but since I don't have a filesystem, I'd have to use a RAM circular buffer.
QUESTION
Is it possible to write the trace data over the JTAG/debugger connection to the PC? Even if this can't be done full-speed, it would still be useful to me.

Access linux's terminal per pixel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to write text-based gui. Is there a way to access terminal per pixel using pure C++? I read a one method, but it was SDL based ;[
Not sure what you imply by "Pure C++", but ncurses is the go-to library for CLI applications (and there is a port for Windows called pdcurses )

If I wanted to create a GUI for wget in c++.. where would I start? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Question is the title.
I'm sorry, I suppose I need to specify.
I'm not sure what commands or what code to use to actually link wget to a gui.
I have two weeks until classes start and I just want to Create something.
Maybe here and here. There are numerous widget toolkits for C++.
Since wget is not a HTTP library, but an application, calling this using system() or similar calls is disrecommended.
I advise you to use a HTTP C/C++ library.

Linux Kernel Implementation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am implementing network layer to aggregate 2 network interface by dividing data to send them on 2 interfaces and combine it on the receiving end. I have achieved it in socket programming(c) but now I have to implement it on kernel in Ubuntu. I cant figure out where to start as i do not have any prior knowledge of kernel programing. Can anyone guide me about any helpful tutorials or demos so i can start working on it.
Have a look at network interface bonding.

How to get network message in the application level? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
In my c++ application, I want to get the HTTP messages such like GET/200OK, and then parse them in to my own struct. How can I get them from the networking card in the run time?
You can try using libucyrl mentioned in this answer.
Also you can write your own TCP client/server application and read the data from sockets, then parse it the way you want it. In this case is better to familiarize first with the HTTP protocol.
I think some tutorials might be useful too, so here are a couple of links:
http://www.freeos.com/articles/4121/
http://www.jmarshall.com/easy/http/