Solved

WinSock latency issues

Posted on 1998-06-01
3
262 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

791 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