?

Log in

No account? Create an account
High-Performance Network Programming in C and Unix. - Adventures in Engineering — LiveJournal
The wanderings of a modern ronin.

Ben Cantrick
  Date: 2008-08-21 17:26
  Subject:   High-Performance Network Programming in C and Unix.
Public
  Tags:  reddit

We want to be well-behaved citizens, which is where non-blocking I/O comes in. The traditional approach of blocking reads and writes on the network is very easy to program, but if you are interested in filling the pipe available to you by pumping packets, you must use non-blocking TCP sockets. Listing 1 shows a simple code fragment using non-blocking sockets for network read and write.

http://www.linuxjournal.com/article/9815

Also covers select(), poll() and mmap().
Post A Comment | | Link






browse
May 2015