Linux TCP socket guide
For those interested in programming TCP/IP sockets under linux the following links are some solid articles that I have come across on this subject. They cover such topics as blocking and non-blocking TCP sockets, TCP keepalive uses, and some linux socket pitfalls to watch out for.
- The first PDF article Using TCP through sockets covers client and server programming for blocking and non-blocking sockets. The article also contains C programming examples of both types of clients and servers.
- The second article TCP Keepalive howto explains in great detail what the TCP keepalive message is used for under linux and has a quick C code example.
- And lastly Five pitfalls of Linux sockets programming is a very good article on some pitfalls that you may encounter when programming your TCP clients and servers.
If you have come across any other good articles on TCP or UDP sockets let me know.