* VRFS-772; partly done; I need to switch to mac to test
This commit is contained in:
parent
0dab797948
commit
e0a00e9fda
|
|
@ -0,0 +1,29 @@
|
||||||
|
class PingController < ApplicationController
|
||||||
|
|
||||||
|
layout false
|
||||||
|
|
||||||
|
def index
|
||||||
|
render 'ping'
|
||||||
|
end
|
||||||
|
|
||||||
|
def at
|
||||||
|
render 'pingat.jnlp'
|
||||||
|
end
|
||||||
|
|
||||||
|
def cc
|
||||||
|
render 'pingcc.jnlp'
|
||||||
|
end
|
||||||
|
|
||||||
|
def no
|
||||||
|
render 'pingno.jnlp'
|
||||||
|
end
|
||||||
|
|
||||||
|
def tw
|
||||||
|
render 'pingtw.jnlp'
|
||||||
|
end
|
||||||
|
|
||||||
|
def vz
|
||||||
|
render 'pingvz.jnlp'
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Test Internet Latency</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Test Internet Latency</h1>
|
||||||
|
<p>Select the link corresponding to your internet service provider.
|
||||||
|
This will launch an applet to test the performance of your connection.</p>
|
||||||
|
|
||||||
|
<h1>My ISP is AT&T</h1>
|
||||||
|
<p>Click <%= link_to 'here', '/ping/at.jnlp' %>.</p>
|
||||||
|
|
||||||
|
<h1>My ISP is Comcast</h1>
|
||||||
|
<p>Click <%= link_to 'here', '/ping/cc.jnlp' %>.</p>
|
||||||
|
|
||||||
|
<h1>My ISP is Time Warner</h1>
|
||||||
|
<p>Click <%= link_to 'here', '/ping/tw.jnlp' %>.</p>
|
||||||
|
|
||||||
|
<h1>My ISP is Verizon</h1>
|
||||||
|
<p>Click <%= link_to 'here', '/ping/vz.jnlp' %>.</p>
|
||||||
|
|
||||||
|
<h1>My ISP is none of the above.</h1>
|
||||||
|
<p>Click <%= link_to 'here', '/ping/no.jnlp' %>.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jnlp spec="1.0+" href="pingat.jnlp" codebase="https://dl.dropboxusercontent.com/u/5471230/ping">
|
||||||
|
<information>
|
||||||
|
<title>Ping</title>
|
||||||
|
<vendor>JamKazam</vendor>
|
||||||
|
</information>
|
||||||
|
<resources>
|
||||||
|
<!-- Application Resources -->
|
||||||
|
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
|
||||||
|
<jar href="ping.jar" main="true"/>
|
||||||
|
</resources>
|
||||||
|
<application-desc name="Ping" main-class="com.jamkazam.ping.Ping" width="400" height="600">
|
||||||
|
<!-- usage: Ping [label=]addr[:port] ... [-c <count>] [-s <size>] -u <url> -i <isp> [-a] -->
|
||||||
|
<argument>da1-cc=50.242.148.38:4442</argument>
|
||||||
|
<argument>-uhttp://www.jamkazam.com/api/users/isp_scoring</argument>
|
||||||
|
<argument>-iat</argument>
|
||||||
|
<argument>-a</argument>
|
||||||
|
</application-desc>
|
||||||
|
<update check="background"/>
|
||||||
|
</jnlp>
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jnlp spec="1.0+" href="pingcc.jnlp" codebase="https://dl.dropboxusercontent.com/u/5471230/ping">
|
||||||
|
<information>
|
||||||
|
<title>Ping</title>
|
||||||
|
<vendor>JamKazam</vendor>
|
||||||
|
</information>
|
||||||
|
<resources>
|
||||||
|
<!-- Application Resources -->
|
||||||
|
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
|
||||||
|
<jar href="ping.jar" main="true"/>
|
||||||
|
</resources>
|
||||||
|
<application-desc name="Ping" main-class="com.jamkazam.ping.Ping" width="400" height="600">
|
||||||
|
<!-- usage: Ping [label=]addr[:port] ... [-c <count>] [-s <size>] -u <url> -i <isp> [-a] -->
|
||||||
|
<argument>da1-cc=50.242.148.38:4442</argument>
|
||||||
|
<argument>-uhttp://www.jamkazam.com/api/users/isp_scoring</argument>
|
||||||
|
<argument>-icc</argument>
|
||||||
|
<argument>-a</argument>
|
||||||
|
</application-desc>
|
||||||
|
<update check="background"/>
|
||||||
|
</jnlp>
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jnlp spec="1.0+" href="pingno.jnlp" codebase="https://dl.dropboxusercontent.com/u/5471230/ping">
|
||||||
|
<information>
|
||||||
|
<title>Ping</title>
|
||||||
|
<vendor>JamKazam</vendor>
|
||||||
|
</information>
|
||||||
|
<resources>
|
||||||
|
<!-- Application Resources -->
|
||||||
|
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
|
||||||
|
<jar href="ping.jar" main="true"/>
|
||||||
|
</resources>
|
||||||
|
<application-desc name="Ping" main-class="com.jamkazam.ping.Ping" width="400" height="600">
|
||||||
|
<!-- usage: Ping [label=]addr[:port] ... [-c <count>] [-s <size>] -u <url> -i <isp> [-a] -->
|
||||||
|
<argument>da1-cc=50.242.148.38:4442</argument>
|
||||||
|
<argument>-uhttp://www.jamkazam.com/api/users/isp_scoring</argument>
|
||||||
|
<argument>-ino</argument>
|
||||||
|
<argument>-a</argument>
|
||||||
|
</application-desc>
|
||||||
|
<update check="background"/>
|
||||||
|
</jnlp>
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jnlp spec="1.0+" href="pingtw.jnlp" codebase="https://dl.dropboxusercontent.com/u/5471230/ping">
|
||||||
|
<information>
|
||||||
|
<title>Ping</title>
|
||||||
|
<vendor>JamKazam</vendor>
|
||||||
|
</information>
|
||||||
|
<resources>
|
||||||
|
<!-- Application Resources -->
|
||||||
|
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
|
||||||
|
<jar href="ping.jar" main="true"/>
|
||||||
|
</resources>
|
||||||
|
<application-desc name="Ping" main-class="com.jamkazam.ping.Ping" width="400" height="600">
|
||||||
|
<!-- usage: Ping [label=]addr[:port] ... [-c <count>] [-s <size>] -u <url> -i <isp> [-a] -->
|
||||||
|
<argument>da1-cc=50.242.148.38:4442</argument>
|
||||||
|
<argument>-uhttp://www.jamkazam.com/api/users/isp_scoring</argument>
|
||||||
|
<argument>-itw</argument>
|
||||||
|
<argument>-a</argument>
|
||||||
|
</application-desc>
|
||||||
|
<update check="background"/>
|
||||||
|
</jnlp>
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jnlp spec="1.0+" href="pingvz.jnlp" codebase="https://dl.dropboxusercontent.com/u/5471230/ping">
|
||||||
|
<information>
|
||||||
|
<title>Ping</title>
|
||||||
|
<vendor>JamKazam</vendor>
|
||||||
|
</information>
|
||||||
|
<resources>
|
||||||
|
<!-- Application Resources -->
|
||||||
|
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
|
||||||
|
<jar href="ping.jar" main="true"/>
|
||||||
|
</resources>
|
||||||
|
<application-desc name="Ping" main-class="com.jamkazam.ping.Ping" width="400" height="600">
|
||||||
|
<!-- usage: Ping [label=]addr[:port] ... [-c <count>] [-s <size>] -u <url> -i <isp> [-a] -->
|
||||||
|
<argument>da1-cc=50.242.148.38:4442</argument>
|
||||||
|
<argument>-uhttp://www.jamkazam.com/api/users/isp_scoring</argument>
|
||||||
|
<argument>-ivz</argument>
|
||||||
|
<argument>-a</argument>
|
||||||
|
</application-desc>
|
||||||
|
<update check="background"/>
|
||||||
|
</jnlp>
|
||||||
|
|
@ -44,6 +44,14 @@ SampleApp::Application.routes.draw do
|
||||||
|
|
||||||
match '/test_connection', to: 'sessions#connection_state', :as => :connection_state
|
match '/test_connection', to: 'sessions#connection_state', :as => :connection_state
|
||||||
|
|
||||||
|
# ping test
|
||||||
|
match '/ping', to: 'ping#index'
|
||||||
|
match '/ping/at.jnlp', to: 'ping#at'
|
||||||
|
match '/ping/cc.jnlp', to: 'ping#cc'
|
||||||
|
match '/ping/no.jnlp', to: 'ping#no'
|
||||||
|
match '/ping/tw.jnlp', to: 'ping#tw'
|
||||||
|
match '/ping/vz.jnlp', to: 'ping#vz'
|
||||||
|
|
||||||
# spikes
|
# spikes
|
||||||
match '/facebook_invite', to: 'spikes#facebook_invite'
|
match '/facebook_invite', to: 'spikes#facebook_invite'
|
||||||
match '/gmail_contacts', to: 'spikes#gmail_contacts'
|
match '/gmail_contacts', to: 'spikes#gmail_contacts'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue