Wire tcp into net.h functions.