Hello Experts, 


I am developing a web tool, Can I define variable of char array for a page in the function containing MHD_create_response_from_buffer, with flag of MHD_RESPMEM_PERSISTENT? or I must use the flag of MUST_COPY ? 


for example: 


send_page ( char * str ) 

{

    char page[1024];

    strcpy ( page, str);

    response = MHD_create_response_from_buffer ( strlen(page), (void*) page, MHD_RESPMEM_PERSISTENT ) ;

 ...

}


or use this : 

static char page[1024]; 


 in multiple threads pool mode ?  


Thanks,

Forrest weicai Ling







Reply via email to