In my socket application there is no database, I am trying to send the packet from socket client to the socket server. However the socket server is down and packet sending become failed. Hence the client socket application gets terminated.Once the server is up, I will restart my socket client and the socket client needs to send the failed data.
Is there any best way store the failed data in client socket machine?
My solution:Here I have planned to serialize the failed data and store in a file. Once after starting the client, it will reads the file and deserialize the data; try to send that to server socket. Is my solution have any defects?