|
-
Aug 9th, 2007, 11:45 PM
#1
Thread Starter
Fanatic Member
winsock - sendData & dataArrival - part 2
I started this thread a while ago in reference to why data sent arrived bunched up. In conclusion, it was because that was the way it was meant to be sent and there were two possible solutions to this. Add a special character at the end of the data and then split the data by that special character when it arrived or use a timer.
I use a combination of these two. I wait 3 seconds before sending data again and use the split to get the data seperated. However, I use the sendData 6 times, which means it takes 18 seconds to send the data. I'm now needing to sendData 10 times. Which means it will make my program take 30 seconds to send its data. That's too long. So I'm thinking of just using the split method. However, is it possible in the following scenario:
So here is my question. I know how to send data with special characters & receive the data and split it at the special characters. I am able to do this because I know how many items are being sent. However, what about when the items you are sending are in a listboxes and the listcount is different everytime? Unless I'm over-thinking, using the special character and splitting is out of the question isn't it? I would have to send the data from each listbox as a seperate sendData using timers to make sure data isn't bunched up. I wouldn't be able to "bunch" all the data together and and try to split it at the receiving end because since the listcount is not the same as before. I can't determine which data came from which listbox.
Anyone get what I'm saying?
[vb5 & starting to move to vb2008] I appreciate the help I get from everyone. Thank you. 
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
|