helloworld

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

Hello World

A simple application using SCION that sends one packet from a client to a server which replies back.

Server:

go run helloworld.go -port 1234

Client:

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

Replace 17-ffaa:1:a with the address of the AS in which the server is running.

Walkthrough:

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

Server:

  1. Open listener connection (pan.ListenUDP).
  2. Read packets from connection (conn.ReadFrom).
  3. Write reply packet (conn.WriteTo).
  4. Close listener connection.

Client:

  1. Open client connection (pan.Dial).
  2. Write packet to connection (conn.Write).
  3. Read reply packet (conn.Read), with timeout
  4. Close client connection.

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