net.c(3)

NAME
net.c - Functions to work with TCP sockets and SSL/TLS.

SYNOPSIS

#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 <netinet/tcp.h>
#include <fcntl.h>
#include <wget.h>
#include 'private.h'
#include 'net.h'
#include 'sockets.h'

  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.

Author

Generated automatically by Doxygen for wget2 from the source code.