0fe5f9282d
New function wget_logger_is_active()
...
* include/wget/wget.h: Add prototype
* libwget/Makefile.am: Add logger.h
* libwget/log.c: Include logger.h
* libwget/logger.c: Include logger.h, add wget_logger_is_active()
* libwget/net.c: Use wget_logger_is_active()
* libwget/private.h: Remove struct _wget_logger_st
2017-01-23 16:55:52 +01:00
bfcd65c12b
Use typedefs for function pointer arguments
...
* include/wget/wget.h: Add typedefs
* libwget/cookie.c: Use typedefs
* libwget/css.c: Likewise
* libwget/css_url.c: Likewise
* libwget/decompressor.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/init.c: Likewise
* libwget/io.c: Likewise
* libwget/list.c: Likewise
* libwget/logger.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/private.h: Likewise
* libwget/robots.c: Likewise
* libwget/stringmap.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* libwget/xml.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/stringmap_perf.c: Likewise
* tests/test.c: Likewise
2017-01-23 14:43:17 +01:00
0354295e03
Add network init function to bootstrap sockets on Windows
...
* bootstrap.conf: Add gnulib module 'sockets'
* examples/http_get2.c: Call wget_net_init()
* include/wget/wget.h: Add wget_net_init() and wget_net_deinit()
* libwget/init.c (wget_global_init): Call wget_net_init(),
(wget_global_deinit): Call wget_net_deinit()
* libwget/net.c: Add wget_net_init() and wget_net_deinit()
2017-01-05 12:09:25 +01:00
2a73b683d8
* libwget/net.c: Include sys/ioctl.h on Windows.
...
(_set_async): Use ioctl() instead of ioctlsocket().
Reported-by: Gisle Vanem
2016-11-08 21:49:09 +01:00
9568b0c87e
Rename include/libwget.h to include/wget/wget.h+wgetver.h
2016-09-30 09:47:32 +02:00
a13166b0b9
* src/net.c (wget_tcp_resolve): Fix mutex unlocking
2016-09-28 10:36:24 +02:00
6397bfc2c2
* libwget/net.c (wget_tcp_resolve): Don't sleep with an acquired mutex
2016-09-27 22:24:29 +02:00
c835040f4a
Fix fnmatch() on Solaris
...
* bootstrap.conf: Add fnmatch-gnu
* configure.ac: Add AC_GNU_SOURCE
2016-09-09 17:10:54 +02:00
bcb5cac192
Add support for TLS False Start
...
* include/libwget.h.in: New declaration wget_tcp_set_tls_false_start()
and wget_tcp_get_tls_false_start()
* libwget/net.c: New functions wget_tcp_set_tls_false_start() and
wget_tcp_get_tls_false_start()
* libwget/net.h: Add tls_false_start to struct wget_tcp_st
* libwget/ssl_gnutls.c (_do_handshake): Print TLS False Start status.
(wget_ssl_open): Enable TLS False Start for GnuTLS >= 3.5.0.
* src/options.c: Add description for --tls-false-start.
(struct option options): Add option --tls-false-start.
(init): Call wget_tcp_set_tls_false_start().
* src/options.h (struct config): Add member tls_false_start.
2016-07-20 13:22:18 +02:00
a9a4f9ce75
Use TCP Fast Open (TFO) within TLS handshake
...
* include/libwget.h.in: New declaration wget_tcp_get_tcp_fastopen()
* libwget/net.c: New function wget_tcp_get_tcp_fastopen(),
(wget_tcp_connect): Support TFO
* libwget/ssl_gnutls.c: New function _ssl_writev()
(wget_ssl_open): Set _ssl_writev() as push function in TFO requested
2016-07-11 14:53:36 +02:00
c0ee476c9c
Fix includes for Windows
...
* libwget/http.c: Include ws2tcpip.h instead of sys/socket.h when available
* libwget/net.c: Likewise
2016-05-08 22:55:13 +02:00
a0c0ca73fe
Fix async sockets for Windows
...
* libwget/net.c (_set_async): Add code path for Windows
2016-05-08 22:51:10 +02:00
0c1acf1963
* libwget/net.c (wget_tcp_read): Use recvfrom() instead of write()
2016-04-06 10:59:47 +02:00
dd3c2f63b2
Updated copyright year for all relevant files
2016-01-25 13:06:21 +01:00
6782658598
Fix DNS caching
...
* libwget/net.c (_wget_dns_cache_add): Allow NULL for port
Remove several #ifdefs (should be handled by gnulib now)
2016-01-22 13:12:21 +01:00
0ecbd6e69a
Removed redundant buffer print routines
...
Removed wget_buffer_vprintf_append, wget_buffer_printf_append,
wget_buffer_vprintf2 and wget_buffer_printf2.
Renamed their *2 counterpart to their old names.
2016-01-13 15:01:43 +01:00
6f134fefb5
Replace strcpy
...
* libwget/net.c (_wget_dns_cache_add, wget_tcp_set_bind_address):
Replace strcpy by memcpy
* src/wget.c (_convert_links): Replace strcpy by snprintf
* src/wget.c (downloader_thread): Replace strcpy by C99 initializer
* src/wget.c (_save_file): Replace strcpy by memcpy
* tests/test-wget-1.c (main): Replace strcpy by memcpy
2016-01-13 11:12:43 +01:00
dd9cb25fcc
Cover network functions with gnulib modules
...
* autogen.sh: Add accept, bind, close, connect, getaddrinfo, getsockname,
listen, netdb, netinet_in, open, read, send, sendto, servent, setsockopt,
socket, sys_socket, write to modules
* configure.ac: Remove searching for ws2_32, libsocket, libnsl, netdb.h,
netinet/in.h, sys/socket.h, socket.
Add searching for netinet/tcp.h.
* examples/Makefile.am: Add additional libs.
* libwget/Makefile.am: Add additional libs.
* src/Makefile.am: Add additional libs.
* tests/Makefile.am: Add additional libs.
* libwget/http.c: Remove conditional code.
* libwget/net.c: Remove conditional code. Use c_isdgit().
* libwget/net.h: Remove conditional code.
2016-01-12 15:08:14 +01:00
1e8c3848d0
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
...
* examples/print_css_urls2.c, libwget/cookie.c, libwget/css.c,
libwget/html_url.c, libwget/http.c, libwget/iri.c, libwget/metalink.c,
libwget/net.c, libwget/robots.c, libwget/ssl_gnutls.c,
libwget/stringmap.c, libwget/xml.c, src/job.c, src/options.c, src/wget.c:
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
2016-01-11 16:26:25 +01:00
0f8e49128a
Transfer copyright to Free Software Foundation, Inc.
2015-09-22 11:50:06 +02:00
c6b0e461a1
Transform Mget into Wget
2015-09-19 22:54:38 +02:00