A Tcp Client Framework