First draft at porting the TcpTank