News for hackers. Stuff that matters.
Re:Beej's Guide to Network Programming by ambrop7 on Monday February 18, 2013 @08:34PM (#5242057)
Still not updated to mention anything more than select() as far as non-blocking IO is concerned, like poll, epoll, or, god no, using an abstract event loop. Nobody who cares about their code and sanity does blocking I/O with sockets.

But then, I must confess I too started network programming with this guide :) It presents the basics nicely, but there's a lot more you should learn about network programming.

Re:Beej's Guide to Network Programming by asveikau on Monday February 18, 2013 @09:13PM (#5242193)
It looks like he did put in a blurb about using libevent in order to use a more modern syscall under the hood - it's disappointing though that he didn't explain why epoll and kqueue are better though, people who are new to this would be much better served by that than by any code samples involving select().
Re:Beej's Guide to Network Programming by jcheng on Monday February 18, 2013 @09:10PM (#5242180)
Are you saying "god no" to using an abstract event loop? If so, why? (I've been using libuv for a project, so far so good.)
Re:Beej's Guide to Network Programming by ambrop7 on Monday February 18, 2013 @10:13PM (#5242375)
No, of course not, I was just referring the the reluctance of the book to get modernized. I can't possibly imagine not using an abstract event loop.
Re:Beej's Guide to Network Programming by jcheng on Tuesday February 19, 2013 @08:32PM (#5248419)
Ah, "God forbid"--gotcha.