About Socket Connection at Application Termination
I have a question about the behavior of Windows, so I will ask you a question.
【environment】
OS: Windows 10
Application: Self-made (implements socket connection Open/Close processing)
A Windows PC is connected to a HUB with a wired LAN cable, and there is a LAN port ahead of it.
Hardware exists and is controlled by TCP communication.
While the self-made application is running on Windows, suddenly forcibly terminate it from the outside for operational reasons
You may be forced to (The process is dropped with taskkill)
Looking at the packet at that time, an RST packet was sent, and the connection with the hardware was broken.
I confirmed that it was disconnected, but this packet was sent by WindowsOS to the application
Is it sent after monitoring the state?
Also, it seems that the above RST is sent and not, and the difference is
I'm having trouble understanding something.
I would like to know if there is anything that can be a hint for a solution.