There is an issue setting curl_context->poll_handle.data to the desired pointer. If you do that then whilst the program still compiles and executes, the resulting program operations lead to undesired and erroneous behaviour. Like so:
context->poll_handle.data = (A *) a; Access would have through in curl_perform with local pointer variable *a like so: curl_context_t *context = req->data; A *a = (A *) context; Look at the way the pointer function *create_curl_context memory allocates memory to the curl_context_t structure. I would like to kick the (super) struct A around in the program. What I have done instead is to declare a separate void *userp in curl_context_t. Then assign the desired pointer (A *a) in this case to it. https://github.com/doa379/libcurl -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
