LibHTTP API Reference

December 26, 2016 ยท View on GitHub

httplib_connect_client_secure( client_options, error_buffer, error_buffer_size );

Parameters

ParameterTypeDescription
client_optionsconst struct httplib_client_options *Settings about the server connection
error_bufferchar *Buffer to store an error message
error_buffer_sizesize_tSize of the error message buffer including the NUL terminator

Return Value

TypeDescription
struct httplib_connection *Pointer to the connection information or NULL if an error occured

Description

The function httplib_connect_client_secure() creates a secure connection with a server. The information about the connection and server is passed in a structure and an error message may be returned in a local buffer. The function returns a pointer to a struct httplib_connection structure when successful and NULL otherwise.

See Also