tcp connection, 3 waves works