Activate and deactive Network connection in Fedora

I require a c++ code through which i can activate and deactive network connection in fedora

Oh, no problem, I’ll get right on that. :wink:

Seriously though, what is Fedora?

a spammer test perhaps? that is a very odd question to ask in this forum, but it might be technical enough with some specific keywords to allow it to avoid some spam detection filters? just a thought. :unamused:

oh and a fedora is a type of hat… lot of octogenerians wear 'em. :wink:

Fedora is also another of those linux things… I hope he’s talking about that, and not trying to program his hat :wink:

As for the actual code… I have no idea :laughing:

It just looks like someone looking for an easy answer to there question that chose the wrong forum, I would ignore it.

What are you trying to do tassadaque? Why can’t your code just do a system call and use iwconfig or wlanconfig?

If you still need to do your own code, google for source code of iwconfig. It’s open source.