Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created January 24, 2021 16:24
Show Gist options
  • Save mrchrisadams/498411fe39802a800f828b91afd7506d to your computer and use it in GitHub Desktop.
Save mrchrisadams/498411fe39802a800f828b91afd7506d to your computer and use it in GitHub Desktop.
SCION internet python pseudo code sample
import scion
scion.init()
paths = scion.get_paths(my_destination)
print(f'Got {len(paths)} paths')
my_path = my_choose_path(paths) # implement whatever you need
with scion.connect(my_destination, my_path) as s:
s.write(b'Hello SCION!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment