Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk Examples
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
elixxir
xxdk Examples
Commits
bbe4e492
Commit
bbe4e492
authored
Jul 6, 2022
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
align file paths for contacts
parent
58f7fee6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
connectClient/main.go
+1
-1
1 addition, 1 deletion
connectClient/main.go
connectServer/main.go
+3
-3
3 additions, 3 deletions
connectServer/main.go
with
4 additions
and
4 deletions
connectClient/main.go
+
1
−
1
View file @
bbe4e492
...
@@ -24,7 +24,7 @@ func main() {
...
@@ -24,7 +24,7 @@ func main() {
// Create a new client object-------------------------------------------------------
// Create a new client object-------------------------------------------------------
// Path to the server contact file
// Path to the server contact file
serverContactPath
:=
"
server-contact.json
"
serverContactPath
:=
"
connectServer.xxc
"
// You would ideally use a configuration tool to acquire these parameters
// You would ideally use a configuration tool to acquire these parameters
statePath
:=
"statePath"
statePath
:=
"statePath"
...
...
This diff is collapsed.
Click to expand it.
connectServer/main.go
+
3
−
3
View file @
bbe4e492
...
@@ -20,6 +20,9 @@ func main() {
...
@@ -20,6 +20,9 @@ func main() {
// Create a new client object-------------------------------------------------------
// Create a new client object-------------------------------------------------------
// Set the output contact file path
contactFilePath
:=
"connectServer.xxc"
// You would ideally use a configuration tool to acquire these parameters
// You would ideally use a configuration tool to acquire these parameters
statePath
:=
"statePath"
statePath
:=
"statePath"
statePass
:=
"password"
statePass
:=
"password"
...
@@ -94,9 +97,6 @@ func main() {
...
@@ -94,9 +97,6 @@ func main() {
// Save contact file----------------------------------------------------------------
// Save contact file----------------------------------------------------------------
// Get the contact file path
contactFilePath
:=
"connectServer.xxc"
// Save the contact file so that client can connect to this server
// Save the contact file so that client can connect to this server
writeContact
(
contactFilePath
,
identity
.
GetContact
())
writeContact
(
contactFilePath
,
identity
.
GetContact
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment