concurrent

command
v0.3.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Example Implementation for concurrent client/server

Building the concurrent binary:

go build .

Example: Running in TCP/IP mode

Run a server with "regular IP" and "TCP" like so:

./concurrent -net IP -transport TCP -local :1337

From a second terminal, you can connect to the server like so:

./concurrent -net IP -transport TCP -remote 127.0.0.1:1337

After a second (or so), you should start seeing Timestamps being sent back and forth:

main.go:64: Message: 2021-10-29 12:44:42.98597813 +0200 CEST m=+1.006368091
main.go:64: Message: 2021-10-29 12:44:43.986855783 +0200 CEST m=+2.007244410
...

Example: Running in QUIC over SCION

Server:

./concurrent -net SCION -transport QUIC -local "19-ffaa:1:eb6,[127.0.0.1]:1337"

(Replace 19-ffaa:1:eb6 with the local ISD-AS)

Client:

./concurrent -net SCION -transport QUIC -remote "19-ffaa:1:eb6,[127.0.0.1]:1337"

(Replace 19-ffaa:1:eb6 with the remote ISD-AS. No need to call the client from a different AS though, testing locally works fine, but you still need to specify the full SCION address for now)

Example: Running over UDP

currently broken

Server:

./concurrent -net IP -transport UDP -local ":1337"

Client:

./concurrent -net IP -transport UDP -remote "127.0.0.1:1337"

Documentation

Overview

Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

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