/
HTTPc_ConnSetParam
HTTPc_ConnSetParam
Setups a parameter related to the given HTTPc Connection Object.
Files
http-c.h/http-c.c
Prototype
void HTTPc_ConnSetParam (HTTPc_CONN_OBJ *p_conn_obj, HTTPc_PARAM_TYPE type, void *p_param HTTPc_ERR *p_err);
Arguments
p_conn_obj
Pointer to the HTTPc Connection Object on which to setup parameter.
type
Parameter type:
HTTPc_PARAM_TYPE_SERVER_PORT
HTTPc_PARAM_TYPE_PERSISTENT
HTTPc_PARAM_TYPE_CONNECT_TIMEOUT
HTTPc_PARAM_TYPE_INACTIVITY_TIMEOUTHTTPc_PARAM_TYPE_SECURE_COMMON_NAME
HTTPc_PARAM_TYPE_SECURE_TRUST_CALLBACK
HTTPc_PARAM_TYPE_CONN_CONNECT_CALLBACK
HTTPc_PARAM_TYPE_CONN_CLOSE_CALLBACK
HTTPc_PARAM_TYPE_CONN_ERR_CALLBACK
p_param
Pointer to parameter to setup.
p_err
Pointer to variable that will receive the return error code from this function:
HTTPc_ERR_NONE
HTTPc_ERR_NULL_PTR
HTTPc_ERR_INIT_NOT_COMPLETED
HTTPc_ERR_CONN_IS_USED
HTTPc_ERR_PARAM_INVALIDHTTPc_ERR_FEATURE_DIS
Returned Values
None.
Required Configuration
None.
Notes / Warnings
- This function MUST be called after the µC/HTTP-client Suite Initialization has been completed.
Related content
HTTPc_Init
HTTPc_Init
More like this
HTTPc_ConnClr
HTTPc_ConnClr
More like this
HTTPc_ConnOpen
HTTPc_ConnOpen
More like this
HTTP Client Connection Object Setup
HTTP Client Connection Object Setup
More like this
Control Structure
Control Structure
More like this
On Connection Connect
On Connection Connect
More like this