After surfing the web I ended up here as I could not find a good answer!
I am writing an application with c++ and gtkmm.
I want to access the network card and listen on all ports for packages.
As far as I have found out it is good to use glibc and sys/socket.h to
be able to to send and resieve over the network, but if you use a socket
you assign to a specific port, but I want to listen on all ports for incoming packages
on my host. I far as I understand you can put the network card in some type of
listen mood but where do I find the info on how?
And what header file, function to use?
Please point me in the right direction!
Many thanks in advance!!