Porting Twisted to C++