Live data from Hacker News

Beej's Guide to Network Programming

beej.us

31–40 of 51 posts

Re: Beej's Guide to Network Programming

#33
post #23

Is there a similar or updated guide some place which includes non-blocking i/o?

There is http://www.wangafu.net/~nickm/libevent-book/ which is useful even if you are not using libevent (which most of the cool kids are)

Some of those cool kids should take a look at libev: http://software.schmorp.de/pkg/libev.html

Re: Beej's Guide to Network Programming

#34
post #26
post #20

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.

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.)

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

#35

If I'm not mistaken this original document was on Chico State's computer science domain. It was my understanding Beej went to Chico; does anyone know for sure? This was around long before 2006, I remember reading it around the year 2000 when I was first getting into C++. (miracle this quality of a document escaped anyone's brain in Chico -- I know, I went to CSUC. Let's just say it was hard to concentrate there :)

I'm curious as to why its hard to concentrate, is it a party school or does it have its own beach like UCSB or what?

Re: Beej's Guide to Network Programming

#36

If I'm not mistaken this original document was on Chico State's computer science domain. It was my understanding Beej went to Chico; does anyone know for sure? This was around long before 2006, I remember reading it around the year 2000 when I was first getting into C++. (miracle this quality of a document escaped anyone's brain in Chico -- I know, I went to CSUC. Let's just say it was hard to concentrate there :)

Yep, he went to Chico from 1993 to 1997 according to his LinkedIn profile: https://www.linkedin.com/in/brianhall

Re: Beej's Guide to Network Programming

#37
post #35

If I'm not mistaken this original document was on Chico State's computer science domain. It was my understanding Beej went to Chico; does anyone know for sure? This was around long before 2006, I remember reading it around the year 2000 when I was first getting into C++. (miracle this quality of a document escaped anyone's brain in Chico -- I know, I went to CSUC. Let's just say it was hard to concentrate there :)

I'm curious as to why its hard to concentrate, is it a party school or does it have its own beach like UCSB or what?

Party school.

Re: Beej's Guide to Network Programming

#38

If I'm not mistaken this original document was on Chico State's computer science domain. It was my understanding Beej went to Chico; does anyone know for sure? This was around long before 2006, I remember reading it around the year 2000 when I was first getting into C++. (miracle this quality of a document escaped anyone's brain in Chico -- I know, I went to CSUC. Let's just say it was hard to concentrate there :)

Chico does sound familiar for some reason, with regard to this guide (I also recall reading it many years ago, probably a decade ago or more). I skimmed through it quickly for a version history but didn't see one.

Re: Beej's Guide to Network Programming

#39
post #16

When I was at university I wanted to take a class that had 'introduction to computer networks' as a prerequisite, but I didn't want to wait 2 semesters for it to come around again after taking networks first. I spoke to the professor and he said he'd let me enroll in the course if I promised to carefully read Beej's guide first, since it contains all the essentials I'd really need for this follow-on. So, this saved m…

+1, The same happened with me too. In my university, the professor teaching Computer Networks never understood about computer networks, forget UNIX, he used to come to class mugging some programs up. This guide helped a lot to start with UNIX, I was so overwhelmed that i went on and sent fan mail to beej xD.
Post reply on HN