quicwind/quicwind_proc.c
int quicwind_load_file(picoquic_quic_t * qclient, int sel_cid, char const * doc_name)
{
    int ret = 0;
    picoquic_cnx_t * cnx = quicwind_find_cid(qclient, sel_cid);

    if (cnx == NULL) {
        ret = -1;
    }
    else {
        /* Retrieve the app context from the connection */
        void * v_ctx = picoquic_get_callback_context(cnx);

        if (v_ctx == NULL) {
            ret = -1;
        }
        else {
            /* Request to load the file */
            ret = quicwind_start_download(cnx, (quicwind_callback_ctx_t *)v_ctx, doc_name);
        }
    }

    return ret;
}
/* Ask to load a file, for the selected connection */
Ask to load a file, for the selected connection
Ask to load a file for the selected connection
int quicwind_load_file(picoquic_quic_t * qclient, int sel_cid, char const * doc_name)
{
    int ret = 0;
    picoquic_cnx_t * cnx = quicwind_find_cid(qclient, sel_cid);
    if (cnx == NULL) {
        ret = -1;
    }
    else {
        void * v_ctx = picoquic_get_callback_context(cnx);
        if (v_ctx == NULL) {
            ret = -1;
        }
        else {
            ret = quicwind_start_download(cnx, (quicwind_callback_ctx_t *)v_ctx, doc_name);
        }
    }
    return ret;
}
int quicwind_load_file ( picoquic_quic_t * qclient , int sel_cid , char const * doc_name ) { int ret = 0 ; picoquic_cnx_t * cnx = quicwind_find_cid ( qclient , sel_cid ) ; if ( cnx == NULL ) { ret = -1 ; } else { void * v_ctx = picoquic_get_callback_context ( cnx ) ; if ( v_ctx == NULL ) { ret = -1 ; } else { ret = quicwind_start_download ( cnx , ( quicwind_callback_ctx_t * ) v_ctx , doc_name ) ; } } return ret ; }
Ask to load a file, for the selected connection
Ask to load a file for the selected connection
/* Retrieve the app context from the connection */ /* Request to load the file */