Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ajf5
MP3
Commits
2a4f4df6
Commit
2a4f4df6
authored
4 years ago
by
ajf5
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
0b5aa101
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/Node.h
+6
-6
6 additions, 6 deletions
inc/Node.h
with
6 additions
and
6 deletions
inc/Node.h
+
6
−
6
View file @
2a4f4df6
#ifndef NODE_H
#define NODE_H
#include
<iostream>
#include
<iostream>
#include
<string>
#include
<vector>
#include
<map>
...
...
@@ -19,7 +19,7 @@
using
namespace
std
;
#define INTRODUCER "172.22.
94.78
" // VM1
#define INTRODUCER "172.22.
158.5
" // VM1
//#define INTRODUCER "172.22.158.81" // VM9
#define PORT "6000"
...
...
@@ -57,7 +57,7 @@ public:
// unsigned long byteSent;
// unsigned long byteReceived;
ModeType
runningMode
;
Logger
*
logWriter
;
bool
activeRunning
;
...
...
@@ -80,7 +80,7 @@ public:
map
<
string
,
tuple
<
string
,
string
,
string
>>
pendingSenderRequests
;
map
<
string
,
tuple
<
bool
,
bool
,
bool
>>
pendingRequestSent
;
Node
();
Node
(
ModeType
mode
);
int
getPositionOnHashring
();
...
...
@@ -122,7 +122,7 @@ public:
string
populateSDFSFileList
(
MessageType
type
,
string
mem_list_to_send
);
void
updateFileList
(
string
sdfsfilename
,
int
nodePosition
);
void
checkFileListConsistency
();
private:
string
populateMembershipMessage
();
string
populateIntroducerMembershipMessage
();
...
...
@@ -133,4 +133,4 @@ private:
int
hashingId
(
Member
nodeMember
,
string
joinTime
);
};
#endif //NODE_H
\ No newline at end of file
#endif //NODE_H
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