Solved

WinSock latency issues

Posted on 1998-06-01
3
270 Views
Last Modified: 2013-12-03
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
Comment
Question by:dwatling
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1405756
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
 
LVL 11

Expert Comment

by:alexo
ID: 1405757
Better yet, run the client and the server on the same machine.
0
 

Author Comment

by:dwatling
ID: 1405758
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question