delphi - Check if connection is Closed ! -


I wrote a Delphi (200 9) app with Indi (TCPser / Client) and I have a problem at TCPAser level : It detects the client's PC after reboot (only after rebooting the PC), when the client tries to reconnect to the server once I have executed my app step, and the client head Tries to reconnect (after reboot), pick up server Receives (one up, I think) exception: Connection reset by peer This exception is too late.

(I do not think the Thread Lister is immediately released)

What do you think?

This is a low-level description of the TCP protocol. By default, it does not transmit consecutive packets, because this is the garbage bandwidth, so it will only be realized that the connection has decreased when something happens which indicates the connection to check. (I'm not sure why the connection is triggered by the same customer again.)

You can send different packets to TCP regularly, who first search for disconnects. In windows, this server can be activated by the application, but is configured through the registry (see for details).

You may also be able to implement a live mechanism at the protocol level, sometimes to send blank packets to clients or servers (a packet that does not do anything special) it is clearly necessary That's not the protocol that you're using, do it in any way or define some-something interesting message (things like nop, position, ping ...).


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -