Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. epoll_ctl (efd, EPOLL_CTL_ADD, fd, &event);
  2.  
  3. if(conn->getSockfd() == events[i].data.fd)
  4. // ....
  5.  
  6. typedef union epoll_data {
  7. void *ptr;
  8. int fd;
  9. uint32_t u32;
  10. uint64_t u64;
  11. } epoll_data_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement