It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to develope a firewall for Linux. I prefer C/C++ language.
Is there any simple sample code for writing a firewall?
Which libraries should I use?
Update: There are some firewalls for Linux, but I want develope a simple firewall for learning.
You can start by using the Netfilters API (http://www.netfilter.org/). I think it is a good starting point for packet filtering. I've worked a lot with this API in kernel space. I'm not sure if there is a library for user land, but I must tell you that it's pretty easy to develop something with netfilters in the kernel.
As an example, iptables use the netfilters API.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Please give me some hints about how to work and, more practically, handle Apple events from raw console application written in C++ on Mac. I know that there is huge infrastructure for this purpose in Cocoa but as I think this is only a wrapper.
May be it's impossible?
There is C API for it:
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Open_Scripti_Architecture/Reference/reference.html
and
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Apple_Event_Manager/Reference/reference.html
Overview:
http://developer.apple.com/legacy/mac/library/#documentation/AppleScript/Conceptual/AppleEvents/intro_aepg/intro_aepg.html
But as you can see that Apple considers this as legacy nowadays, so for a new project, using the Objective-C APIs might be the better choice.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to prepare an iPhone app. A live stream will be coming for a moving camera (assume as a portable webcam) and I need to stream that live video to iPhone using FTP (assume we don't have internet in that area).
Any sort of help is appreciated.
The question is a good one, often asked by programmers world-wide. How to stream via the internet with no internet connection.
The accepted answer is using swallows. The airspeed velocity of a swallow is well-known among technical groups. Basically, what you do is package up your information, append the bytes to the swallow, and send it on its way. Beware. You'll need a lot of swallows.
Of course, the bandwith will depend on whether it's an African or European swallow, but let's not go there.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to create a game in traveling salesman problem using iterative algorithm.
I need the output in an applet environment, in a new window.
Is it possible to use applets in C++ like we normally use it in Java platform?
Can anyone clear my doubt?
No. Java applets compile to Java bytecode and are delivered to a JVM running in a webbrowser. C++ programs (currently) cannot be compiled to Java bytecode, so they cannot be shipped to webbrowsers. Google is doing some work in this area (Native Client, NaCl) but that's far from finished.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am trying to make a standalone using c++.In my standalone I want it to track user's clicks,I mean which link does he/she clicks.I am trying to count how much time he/she uses a perticular site,like pageaddict(a firefox extension).
So any support..?
If you want to make a Firefox extension, you should be using JavaScript. In C++, you might make a sniffer, which could tell you from what site the packets you receive are from. But that would require quite a lot of knowledge and of time.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
hey i need c++ program to edit windows registry
One good program is Regedit.exe. It is probably written in C++.
Qt has an excellent framework for editing registy - that is, QSettings. And for bonus points, if you happen to change your mind and go Linux, your code would still work, storing your data in .ini-style configuration files.
Take note that Qt is very fat for a C++ library, but also very functional. There's a crazy lot you can do with it. I also absolutely recommend it for GUI.
There are probably a thousand small C++ wrappers for registry access. Of course I wrote my own, too. See the class RegistryKey in my envvc program. It's only read-only access, but you'll get the idea.