44#include "../../QSC/QSC/rcs.h"
45#include "../../QSC/QSC/socketclient.h"
87 const qsc_ipinfo_ipv4_address* address, uint16_t port,
111 const qsc_ipinfo_ipv6_address* address, uint16_t port,
QSTP_EXPORT_API qstp_errors qstp_client_connect_ipv4(const qstp_root_certificate *root, const qstp_server_certificate *cert, const qsc_ipinfo_ipv4_address *address, uint16_t port, void(*send_func)(qstp_connection_state *), void(*receive_callback)(qstp_connection_state *, const char *, size_t))
Connect to the remote server using IPv4 and perform the key exchange.
Definition client.c:260
QSTP_EXPORT_API qstp_errors qstp_client_connect_ipv6(const qstp_root_certificate *root, const qstp_server_certificate *cert, const qsc_ipinfo_ipv6_address *address, uint16_t port, void(*send_func)(qstp_connection_state *), void(*receive_callback)(qstp_connection_state *, const char *, size_t))
Connect to the remote server using IPv6 and perform the key exchange.
Definition client.c:396
#define QSTP_EXPORT_API
The api export prefix.
Definition common.h:99
qstp_errors
The QSTP error values.
Definition qstp.h:875
The QSTP socket connection state structure.
Definition qstp.h:1081
The root certificate structure.
Definition qstp.h:1031
The server certificate structure.
Definition qstp.h:994