Skip to content

Instantly share code, notes, and snippets.

@sanmiguel
Created May 29, 2014 13:48
Show Gist options
  • Select an option

  • Save sanmiguel/1a41dc57873eb5a548b6 to your computer and use it in GitHub Desktop.

Select an option

Save sanmiguel/1a41dc57873eb5a548b6 to your computer and use it in GitHub Desktop.
  1. {token} = http post {deviceid, ssoid}
  2. {stun-host} = find stun server host/ip
  3. {contents} = build stun
  4. {message} = sha1({contents}, key={token})
  5. {stun-host} ! {message}
  6. receive {response} from {stun-host}
  • if {response} = ok; sleep ; goto 3.
  • else goto 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment