Socket TCP Client Class developed in Python