• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Sequencial Data Delivery Problem

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
The fastest and most reliable components of any system are those that are not there. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic