SDLNet - Disconnect on Recv(...);?

Started by
10 comments, last by hplus0603 11 years, 10 months ago

As I said before. You do not analysed the traffic.

This only makes it a better guess.
Between you clients and the server you have the TCP/IP stacks of two machines and the wireing between them. Or if they run on one machine you even have the TCP/IP stack between the two application and the operating system anyways.
If you have a hardware with multiple cores running you have parallel execution of the two applications. That a lot of stuff. And as long as you do not check the traffic between your clients and the server you are only guessing.

You are seeing misbehaviour and you do not have a clue whats wrong. So you worry about whats wrong but you must prove your result. This is how failure analysis is done. And while developing software you will do this all the time. If you are not proving your idea about the failure you cannot exclude things.

What you are doing right now is excluding without knowledge. This is fatal and not best practice.


"I do not analysed the traffic"....

You have no direct point, Telnet is developed by Microsoft. Both my client and Telnet disconnect when the server receives something. This means the fault is with the server; it cannot be with the client.
Advertisement
You need to bring up the server in a debugger. Put a breakpoint where it receives the data. Look at what it does -- step through each line, until you get to a point where the server either closes the socket, or exits the process. Congratulations! You have now found the point where the server drops the client!
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement