45#include "socketclient.h"
86#if defined(DKTP_ASYMMETRIC_RATCHET)
123 const qsc_ipinfo_ipv4_address* address, uint16_t port,
146 const qsc_ipinfo_ipv6_address* address, uint16_t port,
DKTP_EXPORT_API dktp_errors dktp_client_listen_ipv4(dktp_local_peer_key *lpk, dktp_remote_peer_key *rpk, void(*send_func)(dktp_connection_state *), void(*receive_callback)(dktp_connection_state *, const uint8_t *, size_t))
Start the server over IPv4 and listen for a single host-to-host connection.
Definition client.c:1197
DKTP_EXPORT_API dktp_errors dktp_client_connect_ipv6(dktp_local_peer_key *lpk, dktp_remote_peer_key *rpk, const qsc_ipinfo_ipv6_address *address, uint16_t port, void(*send_func)(dktp_connection_state *), void(*receive_callback)(dktp_connection_state *, const uint8_t *, size_t))
Connect to a remote host over IPv6 and perform the key exchange.
Definition client.c:1054
DKTP_EXPORT_API dktp_errors dktp_client_connect_ipv4(dktp_local_peer_key *lpk, dktp_remote_peer_key *rpk, const qsc_ipinfo_ipv4_address *address, uint16_t port, void(*send_func)(dktp_connection_state *), void(*receive_callback)(dktp_connection_state *, const uint8_t *, size_t))
Connect to a remote host over IPv4 and perform the key exchange.
Definition client.c:911
DKTP_EXPORT_API dktp_errors dktp_client_listen_ipv6(dktp_local_peer_key *lpk, dktp_remote_peer_key *rpk, void(*send_func)(dktp_connection_state *), void(*receive_callback)(dktp_connection_state *, const uint8_t *, size_t))
Start the server over IPv6 and listen for a single host-to-host connection.
Definition client.c:1298
DKTP_EXPORT_API bool dktp_send_asymmetric_ratchet_request(dktp_connection_state *cns)
Send an asymmetric key-ratchet request to the remote host.
Definition client.c:851
DKTP support header Common defined parameters and functions of the DKTP client and server implementat...
dktp_errors
The DKTP error values.
Definition dktp.h:760
The DKTP socket connection state structure.
Definition dktp.h:902
The DKTP server key structure.
Definition dktp.h:875
The DKTP client key structure.
Definition dktp.h:862