Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //toto das za volanie funkcie accept
- int flags, nerr;
- flags = fcntl(newsock, F_GETFL, 0);
- if (flags < 0)
- err(E_SYS, "fcntl()"); //toto je moja funkcia na chybu, ty si tam daj svoju :D
- nerr = fcntl(newsock, F_SETFL, flags | O_NONBLOCK);
- if (nerr < 0)
- err(E_SYS, "fcntl()"); //podobne
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement