[RESOLVED] separate senddata strings sent together
In my client application, I have a timer that continually sends a string packet every few seconds to the server. At times, the server sends a packet to the client requesting a response from the client in the form of a string packet.
Occasionally, the timer is sending a packet just after the server requests a response from the client and the two strings merge as one packet, which of course the server can no longer interpret.
Is there a way to make sure that the two strings are sent as separate packets?
Thanks for your help.
David
Re: separate senddata strings sent together
Try putting after the socket.senddata line. It shouldnt be showing as one packet anyway....can you show us the socket_dataarraival sub so I can take a look
Re: separate senddata strings sent together
Doevents did the trick.. I even tried putting to senddata evetns directly after eachother in the timer. without the doevents, both strings were sent as one, with the doevents, each string was sent separately
thanks