Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sequencial Data Delivery Problem  RSS feed

poonks Arasu
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a client socket from where i communicate with server socket.
The process flow is as follows
1) open socket
2) write data into server socket
3) Read data
4) write acknowledgement
5) Close socket
The whole process is looped again and again depending on some parameter.
SomeTimes(not all the time) we found from the server socket program during the loop,the data of second loop arrives the server socket before the acknowledgement(write) of the first loop arrives although second loop is started after closing the socket of the first loop.
Can anyone please explain why this happens and any solution to avoid this without modifying server socket.
Thanks in advance,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!