Differences between revisions 4 and 5
Revision 4 as of 2020-09-02 14:50:01
Size: 743
Editor: davidsch
Comment:
Revision 5 as of 2020-09-02 14:50:34
Size: 744
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, 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. 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.

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 opened, no longer used 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)