Differences between revisions 2 and 3
Revision 2 as of 2020-09-02 14:14:58
Size: 713
Editor: davidsch
Comment:
Revision 3 as of 2020-09-02 14:49:46
Size: 742
Editor: davidsch
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
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, there are too many open sockets, then 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 afterwards. 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, no longer used, open 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.

Socket programming

Literature

If you are completely new to socket programming, have a look at 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, no longer used, open sockets, one good idea is to check the TCP state diagram first, and review your code accordingly.

Programming/Libraries/SocketProgramming (last edited 2020-09-02 14:51:07 by davidsch)