i dont know if a port scanner is what i really need. Bassically i need to write a program that i give a port range to and it tries to connect over differnt protocals

These are the main ones i need to check
TLS1
TLS1.1
SSLv2
SSLv3