Make tcp connections with a convenient api.