cURL / Mailing Lists / curl-library / Single Mail


Re: TFTP nits

From: Gisle Vanem <>
Date: Mon, 05 Sep 2005 17:21:02 +0200

Speaking of tftp nits; "curl tftp://localhost/foo" connects using
TCP contary to what host*.c is suggesting (using SOCK_DGRAM in
hints). Shouldn't there be a similar test to this one in hostip6.c:

 if(conn->protocol & PROT_TFTP)
   hints.ai_socktype = SOCK_DGRAM;
   hints.ai_socktype = SOCK_STREAM;

in connect.c?

Received on 2005-09-05