wget2: net.c File Reference

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions
net.c File Reference

### (2021-09-05 15:34:56 -0600, (build 0f85ef3))

Functions to work with TCP sockets and SSL/TLS. More...

`#include <config.h>`
`#include <sys/types.h>`
`#include <stddef.h>`
`#include <stdio.h>`
`#include <string.h>`
`#include <unistd.h>`
`#include <stdarg.h>`
`#include <c-ctype.h>`
`#include <time.h>`
`#include <errno.h>`
`#include <sys/socket.h>`
`#include <netdb.h>`
`#include <netinet/in.h>`
`#include <fcntl.h>`
`#include <wget.h>`
`#include "private.h"`
`#include "net.h"`
`#include "sockets.h"`
Include dependency graph for net.c:

## Functions
int | wget_net_init (void)
int | wget_net_deinit (void)
void | wget_tcp_set_dns (wget_tcp *tcp, wget_dns *dns)
void | wget_tcp_set_tcp_fastopen (wget_tcp *tcp, bool tcp_fastopen)
bool | wget_tcp_get_tcp_fastopen (wget_tcp *tcp)
void | wget_tcp_set_tls_false_start (wget_tcp *tcp, bool false_start)
bool | wget_tcp_get_tls_false_start (wget_tcp *tcp)
void | wget_tcp_set_protocol (wget_tcp *tcp, int protocol)
int | wget_tcp_get_protocol (wget_tcp *tcp)
void | wget_tcp_set_preferred_family (wget_tcp *tcp, int family)
int | wget_tcp_get_preferred_family (wget_tcp *tcp)
void | wget_tcp_set_family (wget_tcp *tcp, int family)
int | wget_tcp_get_family (wget_tcp *tcp)
int | wget_tcp_get_local_port (wget_tcp *tcp)
void | wget_tcp_set_connect_timeout (wget_tcp *tcp, int timeout)
void | wget_tcp_set_timeout (wget_tcp *tcp, int timeout)
int | wget_tcp_get_timeout (wget_tcp *tcp)
void | wget_tcp_set_bind_address (wget_tcp *tcp, const char *bind_address)
void | wget_tcp_set_bind_interface (wget_tcp *tcp, const char *bind_interface)
void | wget_tcp_set_ssl (wget_tcp *tcp, bool ssl)
bool | wget_tcp_get_ssl (wget_tcp *tcp)
const char * | wget_tcp_get_ip (wget_tcp *tcp)
void | wget_tcp_set_ssl_hostname (wget_tcp *tcp, const char *hostname)
const char * | wget_tcp_get_ssl_hostname (wget_tcp *tcp)
wget_tcp * | wget_tcp_init (void)
void | wget_tcp_deinit (wget_tcp **_tcp)
int | wget_tcp_ready_2_transfer (wget_tcp *tcp, int flags)
int | wget_tcp_connect (wget_tcp *tcp, const char *host, uint16_t port)
int | wget_tcp_tls_start (wget_tcp *tcp)
void | wget_tcp_tls_stop (wget_tcp *tcp)
ssize_t | wget_tcp_read (wget_tcp *tcp, char *buf, size_t count)
ssize_t | wget_tcp_write (wget_tcp *tcp, const char *buf, size_t count)
ssize_t | wget_tcp_vprintf (wget_tcp *tcp, const char *fmt, va_list args)
ssize_t | wget_tcp_printf (wget_tcp *tcp, const char *fmt,...)
void | wget_tcp_close (wget_tcp *tcp)

## Detailed Description

Functions to work with TCP sockets and SSL/TLS.