Updated TCPObject code to use the STL though it needs bug fixes; added Bahke's contributions