|
-
Feb 7th, 2006, 10:17 PM
#1
Thread Starter
Hyperactive Member
Winsock Woes (time issues & data corruption)
I have a system setup that allows a client proggy to connect to a server, pull data, and then connect to another server, and continually receive data from the second server. It all works fine except for the continual data push. When I test it on my computer speed is no issue and it works 100%. I gave it to a friend (with a 56k modem) to test and suddenly I'm being overloaded with packets.
I'm only sending about 500 bytes per second to the client proggy, but it is lagging big time. Is this to be expected simply because it is on a 56k?
Also, instead of receiving purely the data that was sent, (i.e., say, 60 bytes), the Winsock GetData method is returning between 400 and 1000+ bytes each time. Most of the data is pure repetition from older SendData calls. How do I insure that the data I receive is from one SendData call only?
"I don't want to live alone until I'm married" - M.M.R.P
-
Feb 8th, 2006, 08:12 AM
#2
New Member
Re: Winsock Woes (time issues & data corruption)
Firstly I think that it's the 56k connection and the fact that you may be sending packets too fast..
To cut the repetition problem you could send the data you want and after that send something like a signature so that you know when you receive the data and after this refuse the other data that is repeated..Or you could simply puts as many signatures as the data you send..I.e you send 7 string, you send 7 signatures..
Of course it's only an idea i haven't tried it but i may do the trick..Try it out and let me know
-
Feb 10th, 2006, 05:52 AM
#3
Re: Winsock Woes (time issues & data corruption)
You need packet dilemeters, to make sure the packets dont clump together see my sig 
Pino
-
Feb 10th, 2006, 11:08 AM
#4
Thread Starter
Hyperactive Member
Re: Winsock Woes (time issues & data corruption)
Thanks Pino! The discussion on the topic was help enough, but I'm looking at your guide now.
"I don't want to live alone until I'm married" - M.M.R.P
-
Feb 10th, 2006, 11:27 AM
#5
Re: Winsock Woes (time issues & data corruption)
No porbs I wrote it agers ago so not sure how consice it is. If you need any help just post 
Pino
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
|