helloworld

command
v0.0.0-...-5927b00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

Hello World

A simple application using SCION that sends one packet.

You must call it with a local AS address, and a remote one. For instance:

go run helloworld.go -local 17-ffaa:1:a,[127.0.0.1] -remote 17-ffaa:1:a,[127.0.0.1]:1234

Replace 17-ffaa:1:a with your local AS address. You can use 17-ffaa:1:a or replace it with any existing AS address, including your local one's.

Walkthrough:

This SCION application is very simple, and it demonstrates what is needed to send data using SCION:

  1. Parse addresses from string to binary structures.
  2. Initialize the SCION library.
  3. Obtain a path manager.
  4. Obtain paths from source to destination.
  5. Obtain a connection using one of these paths.
  6. Use that connection to send the data.

You can find these items in the comments of the code.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL