Made tcp_connection class use socket_ptrs for memory safety.