This code using c++ (:shipit:) to implement TLS communication.
g++ -Wall -o server server.cpp -L/usr/lib -lssl -lcrypto
sudo ./server <portnum>
g++ -Wall -o client client.cpp -L/usr/lib -lssl -lcrypto
./client <host_name> <port_number>
Note
to use wireshark to verify handshark TLS1.2 protocal. you need to used port number less than 1024 with root permission.