开发者

can I use curl_multi/multi_socket with libevent

开发者 https://www.devze.com 2023-01-16 20:25 出处:网络
I\'m using libevent2 for building a server, and I\'m trying to enable the server to use libcurl asynchronously, and I\'m wondering about how I do 开发者_如何学Cthat with libevent2.

I'm using libevent2 for building a server, and I'm trying to enable the server to use libcurl asynchronously, and I'm wondering about how I do 开发者_如何学Cthat with libevent2.

I would like to be able to get curl to send events so I can inspect the current state.

Update: I figured it out

http://github.com/mathgladiator/node.ocaml/blob/master/ext/sandbox.c


the multi_socket API was made to be used by event-based systems such as libevent, so yes

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号