|
-
Feb 22nd, 2006, 08:30 AM
#1
Thread Starter
Member
[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
-
Feb 22nd, 2006, 06:10 PM
#2
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
-
Feb 22nd, 2006, 08:56 PM
#3
Thread Starter
Member
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
Last edited by dlern; Feb 22nd, 2006 at 08:59 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|