Enhanced port scanning detection algorithm in C++. Analysis of temporal patterns, TCP flags, and behavioral features for effective network traffic monitoring.