#rev 2020-09-02 davidsch = Socket programming = == Literature == If you are completely new to socket programming, have a look at [[https://www.binarytides.com/socket-programming-c-linux-tutorial/|this]] tutorial. It explains socket programming step-by-step with code examples that a easily be compiled and run on your computer. == Troubleshooting == If you run in a situation where your TCP/ IP socket code compiles and runs, but from time to time a connection is lost for no "obvious" reasons, or, for instance, if your application keeps too many opened, no longer used sockets, one good idea is to check the [[https://en.wikipedia.org/wiki/File:Tcp_state_diagram.png|TCP state diagram]] first, and review your code accordingly.