writeaclientandaserversourcecodetoexchangemessagebetweenthem,topracticehowtosetupaconnectionbyTCP