private.h 376 B

123456789101112131415161718
  1. #include "faux/faux.h"
  2. #include "faux/list.h"
  3. #include "faux/net.h"
  4. #include "faux/vec.h"
  5. struct faux_net_s {
  6. int fd; // File (socket) descriptor
  7. int (*isbreak_func)(void);
  8. sigset_t sigmask;
  9. struct timespec send_timeout_val;
  10. struct timespec recv_timeout_val;
  11. struct timespec *send_timeout;
  12. struct timespec *recv_timeout;
  13. };
  14. struct faux_pollfd_s {
  15. faux_vec_t *vec;
  16. };