I want to build a TCP socket function which based on a event application.
I almost finished all the function except a small problem.
Here is the problem, The client can connect my application call evtest through port 7046. After the connection is built, the evtest can send out the command string to the client.
But if the client closes the connection and my evtest will shut down also. It said that "Send, connection reset by peer."
What I really want my evtest can always active, the client side can always connect to my evtest even after close the connection.
To more clearly present what I want, I want the evtest application can always accept the outside connection and send out the command to them. Even the client break out connection, they can simply connect to my evtest application without distrub my evtest.
Thank you for reading. Sorry for my english.