This application is very similar to NMAP tool which can probe remote hosts for Open ports.  The program was implemented in Multi-threaded environment in C++ and   pthreads. TCP scans comprising of SYN ACK NULL XMAS and FIN were done to imply whether the port is open, closed or filtered.