Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaassen authored Feb 21, 2020
1 parent 3b981bb commit 318c319
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ reachable from all the intended participants.
Starting a hub can be done using the following script in the smartsockets
distribution:
```
./bin/hub
./scripts/hub
```
When started, the hub will print it's contact address. For example:
```
Expand All @@ -184,7 +184,7 @@ When started, the hub will print it's contact address. For example:
If multiple hubs are used, this address can be provided as a parameter to
other hubs, like this:
```
./bin/hub 130.37.193.15-17878~jason
./scripts/hub 130.37.193.15-17878~jason
```
This second hub will then attempt to connect to it. Note that hubs can only
use direct connections or SSH tunneling. Since they are part of the SmartSockets
Expand Down Expand Up @@ -263,15 +263,15 @@ these applications, a simple latency test.
We start by creating a hub network as described above. In our case, a single hub
is sufficient:
```
./bin/hub
./scripts/hub
```
Which prints:
```
130.37.193.15-17878~jason
```
We now start one of the test applications using a script in the distribution:
```
./bin/app test.virtual.simple.Latency \
./scripts/app test.virtual.simple.Latency \
-Dsmartsockets.hub.addresses=130.37.193.15-17878~jason
```
Note that we provide the hub contact address to the application using the '-D'
Expand All @@ -288,7 +288,7 @@ hub address is also part of this data.
We now start the client side of the application on a different machine, a laptop
behind an ADSL modem which does NAT:
```
./bin/app test.virtual.simple.Latency \
./scripts/app test.virtual.simple.Latency \
-Dsmartsockets.hub.addresses=130.37.193.15-17878~jason \
-target 130.37.193.15-44672:[email protected]~jason# \
-count 100
Expand Down

0 comments on commit 318c319

Please sign in to comment.