private.h 445 B

12345678910111213141516171819202122232425
  1. #include "faux/faux.h"
  2. #include "faux/list.h"
  3. #include "faux/net.h"
  4. struct faux_async_s {
  5. int fd;
  6. // Read
  7. faux_async_read_cb_f read_cb; // Read callback
  8. void *read_udata;
  9. size_t min;
  10. size_t max;
  11. faux_list_t *i_list;
  12. size_t i_rpos;
  13. size_t i_wpos;
  14. size_t i_size;
  15. // Write
  16. faux_async_stall_cb_f stall_cb; // Stall callback
  17. void *stall_udata;
  18. faux_list_t *o_list;
  19. size_t o_rpos;
  20. size_t o_wpos;
  21. size_t o_size;
  22. size_t overflow;
  23. };