mirror of
https://github.com/curl/curl.git
synced 2026-04-14 00:51:42 +08:00
Instead of depending the socket domain type on use_ipv6, specify the domain type (AF_INET / AF_INET6) as variable. An enum is used here with switch to avoid compiler warnings in connect_to, complaining that rc is possibly undefined (which is not possible as socket_domain is always set). Besides abstracting the socket type, make the debugging messages be independent on IP (introduce location_str which points to "port XXXXX"). Rename "ipv_inuse" to "socket_type" and tighten the scope (main). Signed-off-by: Peter Wu <peter@lekensteyn.nl> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| base64.pl | ||
| CMakeLists.txt | ||
| fake_ntlm.c | ||
| getpart.c | ||
| getpart.h | ||
| Makefile.am | ||
| Makefile.inc | ||
| resolve.c | ||
| rtspd.c | ||
| server_setup.h | ||
| server_sockaddr.h | ||
| sockfilt.c | ||
| sws.c | ||
| testpart.c | ||
| tftp.h | ||
| tftpd.c | ||
| util.c | ||
| util.h | ||