latency

How to determine latency of a remote server through the browser

◇◆丶佛笑我妖孽 提交于 2019-11-29 05:57:33
I run a couple of game tunnelling servers and would like to have a page where the client can run a ping on all the servers and find out which is the most responsive. As far as I can see there seems to be no proper way to do this in JavaScript, but I was thinking, does anybody know of a way to do this in flash or some other client browser technology maybe? Most applet technology, including Javascript, enforces a same-origin policy. It may be possible to dynamically add DOM elements, such as images, and collect timing information using the onload event handler. Psuedo-code for (server in servers

Determine asymmetric latencies in a network

空扰寡人 提交于 2019-11-29 02:29:09
Imagine you have many clustered servers, across many hosts, in a heterogeneous network environment, such that the connections between servers may have wildly varying latencies and bandwidth. You want to build a map of the connections between servers by transferring data between them. Of course, this map may become stale over time as the network topology changes - but lets ignore those complexities for now and assume the network is relatively static. Given the latencies between nodes in this host graph, calculating the bandwidth is a relative simply timing exercise. I'm having more difficulty

Fastest technique to pass messages between processes on Linux?

独自空忆成欢 提交于 2019-11-28 15:44:16
What is the fastest technology to send messages between C++ application processes, on Linux? I am vaguely aware that the following techniques are on the table: TCP UDP Sockets Pipes Named pipes Memory-mapped files are there any more ways and what is the fastest? Sam I would suggest looking at this also: How to use shared memory with Linux in C . Basically, I'd drop network protocols such as TCP and UDP when doing IPC on a single machine. These have packeting overhead and are bound to even more resources (e.g. ports, loopback interface). Whilst all the above answers are very good, I think we'd

Get ping latency from host

北城以北 提交于 2019-11-28 09:24:43
I'm trying to get the latency from host for a pretty good time and I'm stuck in. Already tried Simple Ping , but seems it doesn't return the latency. The closest I've done was when I use the TKC-PingTest for MAC OS. That works perfect but only in the iPhone Simulator because when use the iPhone I get an error due the patch "/sbin/ping" TKC uses. Besides these two, I already tried many others and got nothing. You can easily extend simple ping to calculate the latency. Simpleping.h defines the SimplePingDelegate protocol. There are two methods of interest - didSendPacket and

Handeling Latency in MySQL Transactions

此生再无相见时 提交于 2019-11-28 06:06:11
问题 The Problem I'm trying to figure out how to correctly set up a transaction in a database, and account for potential latency. The Setup In my example I have a table of users , keys , where each user can have multiple keys, and a config table that dictates how many keys each user is allowed to have. I want to run a stored procedure that: figures out if the given user is allowed to request a key. get an available, unclaimed key . attempts to redeem the key for the given user. the pseudocode for

How do I obtain the latency between server and client in C#?

烂漫一生 提交于 2019-11-28 00:09:50
I'm working on a C# Server application for a game engine I'm writing in ActionScript 3. I'm using an authoritative server model as to prevent cheating and ensure fair game. So far, everything works well: When the client begins moving, it tells the server and starts rendering locally; the server, then, tells everyone else that client X has began moving, among with details so they can also begin rendering. When the client stops moving, it tells the server, which performs calculations based on the time the client began moving and the client render tick delay and replies to everyone, so they can

How to determine latency of a remote server through the browser

╄→гoц情女王★ 提交于 2019-11-27 23:28:22
问题 I run a couple of game tunnelling servers and would like to have a page where the client can run a ping on all the servers and find out which is the most responsive. As far as I can see there seems to be no proper way to do this in JavaScript, but I was thinking, does anybody know of a way to do this in flash or some other client browser technology maybe? 回答1: Most applet technology, including Javascript, enforces a same-origin policy. It may be possible to dynamically add DOM elements, such

Is the register keyword still used?

为君一笑 提交于 2019-11-27 22:19:42
Just came across the register keyword in C++ and I wondered as this seems a good idea (keeping certain variables in a register) surely the compiler does this by default? So I wondered is this keyword still used? Most implementations just ignore the register keyword (unless it imposes a syntactical or semantical error). The standard also doesn't say that anything must be kept in a register; merely that it's a hint to the implementation that the variable is going to be used very often. Its use is even deprecated. 7.1.1 Storage class specifiers [dcl.stc] 3) A register specifier is a hint to the

Latency between Azure Web Role and SQL Azure and Application performance

烂漫一生 提交于 2019-11-27 18:07:08
问题 Azure Web Role and Sql Azure Latency Hi Just to know that there is a latency and timeout between the web worker role and SQL Azure , Event a Timeout at some times (These a are not random having frequently ) 40% of 100 pings does not have 0ms timeout if Web worker role and SQL Azure in the same data center WHY there is a timeout as they are communicating using their internal network Pls Refer the attached screenshots : Application which runs on this web worker role has a mysteries performance

Dealing with Latency in Networked Games

为君一笑 提交于 2019-11-27 17:27:43
I'm thinking about making a networked game. I'm a little new to this, and have already run into a lot of issues trying to put together a good plan for dead reckoning and network latency, so I'd love to see some good literature on the topic. I'll describe the methods I've considered. Originally, I just sent the player's input to the server, simulated there, and broadcast changes in the game state to all players. This made cheating difficult, but under high latency things were a little difficult to control, since you dont see the results of your own actions immediately. This GamaSutra article