curl-library
Re: TFTP nits
From: Gisle Vanem <giva_at_bgnett.no>
Date: Mon, 05 Sep 2005 17:21:02 +0200
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;
else
hints.ai_socktype = SOCK_STREAM;
in connect.c?
--gv
Received on 2005-09-05