Re: [Qemu-devel] [PATCH v2 01/11] curl: introduce CURLSockInfo to BDRVCURLState.

2013-05-14 Thread Stefan Hajnoczi
On Tue, May 14, 2013 at 10:26:20AM +0800, Fam Zheng wrote: > We use socket provided by curl in the driver. Libcurl multi interface > has option CURLMOPT_SOCKETFUNCTION for socket. > > Per man 3 curl_multi_setopt: > > ... > CURLMOPT_SOCKETFUNCTION > > Pass a pointer to a function mat

[Qemu-devel] [PATCH v2 01/11] curl: introduce CURLSockInfo to BDRVCURLState.

2013-05-13 Thread Fam Zheng
We use socket provided by curl in the driver. Libcurl multi interface has option CURLMOPT_SOCKETFUNCTION for socket. Per man 3 curl_multi_setopt: ... CURLMOPT_SOCKETFUNCTION Pass a pointer to a function matching the curl_socket_callback prototype. The curl_multi_socket_action(3)