Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

WinSock latency issues

I've written a WinSock wrapper class for use with client/server applications. When client programs connect to the server though, there is a noticeable lag time of about .33 seconds on average with an occasional 2 to 3 seconds or more lag spike. Is this due to internet latency, my connection rate (only 57.6kbps) or the routines that I've written? Also, is there any way to speed up the transfer rate of the data?
0
dwatling
Asked:
dwatling
1 Solution
 
jhanceCommented:
To isolate the latency to either your program or the network, try running with your client on the local network.  That way, slow network performance won't impact your performance.  If it's still slow, then you know it's in your code or hardware.
0
 
alexoCommented:
Better yet, run the client and the server on the same machine.
0
 
dwatlingAuthor Commented:
I tried your suggestion, and it runs with little or no lag, so it's gotta be the modem speed or the internet.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now