about providing the userdata for "ev_io"

2018-03-07 Thread lingi
Hi, Is it possible to provide the userdata for "ev_io", which is similar to the function "void ev_set_userdata (struct ev_loop *loop, void *data)" ? That is more convenience for user. meanwhile, I feel confused about it don't do this. In addtion to, I 'm glad to see the source code or it's mirr

Re: about providing the userdata for "ev_io"

2018-03-07 Thread Marc Lehmann
On Wed, Mar 07, 2018 at 03:18:32PM +0800, lingi wrote: > Hi, Is it possible to provide the userdata for "ev_io", which is similar to > the function "void ev_set_userdata (struct ev_loop *loop, void *data)" ? By default, every watcher has a "void *data" member that you can use for this. If you em