Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:techref:libubox [2018/02/20 18:51] – ↷ Page moved from doc:techref:libubox to docs:techref:libubox bobafetthotmail | docs:techref:libubox [2023/03/20 12:33] (current) – [libubox/uloop.h] style tatami | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| The fd management part is set up with the uloop_fd struct, just adding the fd and the callback function you want called when an event arises. The rest of the structure is for internal use. | The fd management part is set up with the uloop_fd struct, just adding the fd and the callback function you want called when an event arises. The rest of the structure is for internal use. | ||
| - | The timeout management part is mostly prepared to do simple things, if you have the idea of doing something | + | The timeout management part is mostly prepared to do simple things. If you want to do something |
| Timeout structure should be initialized with just the callback and pending=false (timeout={.cb=cb_func} does the work), and added to uloop using uloop_timeout_set(), | Timeout structure should be initialized with just the callback and pending=false (timeout={.cb=cb_func} does the work), and added to uloop using uloop_timeout_set(), | ||