updated TCP Client and Server examples