TcpTransport: need to #include <stdlib.h> for malloc.