summaryrefslogtreecommitdiff
path: root/src/rexmpp_tcp.c
AgeCommit message (Collapse)Author
2023-12-07Provide a callback after socket creation, use _Booldefanor
The callback is provided to set socket options, instead of individual options such as path_mtu_discovery (which is now removed). Noticed that the Rust rexmpp structure's C representation does not match that of C, since Rust's "bool" maps to C99's "_Bool", while I thought that it maps to "int" (c_int). Adjusted C structures to use "bool" from stdbool.h as well, since C99 (GNU99) is used already.
2023-05-02Use timespec and monotonic clock for timersdefanor
2023-04-15Add a path MTU discovery setting for TCP socketsdefanor
2023-04-15Fix an inet_pton argumentdefanor
2022-01-10Check in rexmpp_tcp_connected whether DNS records are resolveddefanor
They may not be if an IP address is used instead of a hostname.
2021-10-03Fix IPv6 address handlingdefanor
2021-09-21Make libunbound optionaldefanor
Just use gethostbyname when it's disabled. Possibly will add c-ares, getaddrinfo_a, and other options in the future.
2020-11-23Use stricter compiler checksdefanor
2020-11-13Switch from c-ares to libunbounddefanor
libunbound supports DNSSEC, which is needed for DANE TLSA: GnuTLS verifies a certificate for the final host, but SRV and A/AAAA records leading to it should be verified as well. c-ares is still used to parse domain names in SRV records, but should be replaced soon.
2020-05-26Fix conditions in rexmpp_tcp_conn_timeout and rexmpp_tcp_conn_fdsdefanor
2020-03-01Add SOCKS5 supportdefanor
2020-03-01Add rexmpp_tcp_cleanupdefanor
2020-02-29Use uint16_t for port numbersdefanor
2020-02-29Add rexmpp_tcp_connecteddefanor
2020-02-29Add the draftdefanor