montage-tech/src/kware/network/http_file/http_download_mini.cpp
/*
 *
 * constructor, here we allocate memory to be used
 * by this class, spawn the download task thread
 *
 */
constructor, here we allocate memory to be used
by this class, spawn the download task thread
constructor here we allocate memory to be used by this class spawn the download task thread
http_download_mini::http_download_mini()
{
    struct thread_dld * dld = NULL;
    state = HTTP_ERR;
    dld = (struct thread_dld *) mtos_malloc(sizeof(struct thread_dld));
    if (!dld) {
        OS_PRINTF("[%s][ERROR] fail malloc...\n", __func__);
        return;
    }
    memset(dld, 0, sizeof(struct thread_dld));
    dld->state = HTTP_RECYCLE;
    dld->fd = -1;
    dld->fname = NULL;
    contex = dld;
    state = HTTP_INIT;
    dld->abort_by_user = false;
    dld->redirect_flag = false;
}
http_download_mini :: http_download_mini ( ) { struct thread_dld * dld = NULL ; state = HTTP_ERR ; dld = ( struct thread_dld * ) mtos_malloc ( sizeof ( struct thread_dld ) ) ; if ( ! dld ) { OS_PRINTF ( " \n " , __func__ ) ; return ; } memset ( dld , 0 , sizeof ( struct thread_dld ) ) ; dld -> state = HTTP_RECYCLE ; dld -> fd = -1 ; dld -> fname = NULL ; contex = dld ; state = HTTP_INIT ; dld -> abort_by_user = false ; dld -> redirect_flag = false ; }
constructor, here we allocate memory to be used
 by this class, spawn the download task thread
constructor here we allocate memory to be used by this class spawn the download task thread
//OS_PRINTF("[%s] start start ...\n", __func__); //OS_PRINTF("[%s] this is http_download_mini construtor ...!!!!!\n", __func__); //OS_PRINTF("[%s] end end ...\n", __func__);