PDA

Click to See Complete Forum and Search --> : Winsock Buffer Speed


Nafto
Jan 7th, 2005, 05:46 PM
Hey,
My friend told me that there is a delay with the winsock buffer so that information is sent not instantly. How do you change it? Even if this is not true or you don't know please point me to anything that has info about the winsock buffer
thanks

Pino
Jan 10th, 2005, 04:29 PM
Hey,
My friend told me that there is a delay with the winsock buffer so that information is sent not instantly. How do you change it? Even if this is not true or you don't know please point me to anything that has info about the winsock buffer
thanks
Are we using Vb 6 for this app? Could you explain a bit more of what you mean by the winsock buffer is slow, i've looked into the matter for you and as of yet have found no articles on the net but if you provide more details i can do my best to help you out :)

Pino

ntg
Jan 11th, 2005, 07:01 PM
If we're talking about the Winsock control, what you may refer to is the fact that when you're sending a large construct it appears that the .Send isn't performed at once. In fact, the .Send method blocks your code and only exits once it's done sending all the data and this may appear as lag. The same thing happens on the receiving end. However, the .Send method starts sending data packets to the remote party at once but you can't see this if you're using the Winsock control because it's working synchronously - you need to use sockets to look behind the curtains for that.

Cheers,
NTG