hello people,
I am writing some code ( C / C++ languages...) whose work is to capture the packets and search for some strings which are there in the database provided with. I want my code work consistently even on the networks with huge bandwidth where thousands of packets will be arriving at every second. I want it to be extreme robust in nature and also don't want to give up even a time of single clock cycle.
In between I met with a need to maintain some hash structure using which I will be keeping track of all the connections using the four parameters : source port, destination port, source IP, and Destination Ip.
Can any body please tell me if I use the hash_map (or any other STL if any?) will be helpful to me?
or
it will consume more time and better to prepare my own?
I am not sure about which option to choose.
.