Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS744 DECS-PA4-KEYVALUE-SERVER
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kamal Khodabhai
CS744 DECS-PA4-KEYVALUE-SERVER
Commits
93938e76
Commit
93938e76
authored
Nov 21, 2021
by
Mayank Manoj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mayank' into 'master'
code running properly See merge request
!5
parents
e140c269
0dc1284e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
79 deletions
+82
-79
Backend.h
Backend.h
+5
-5
client.cpp
client.cpp
+1
-1
server.cpp
server.cpp
+76
-73
No files found.
Backend.h
View file @
93938e76
...
@@ -26,7 +26,7 @@ public:
...
@@ -26,7 +26,7 @@ public:
{
{
return
;
return
;
}
}
virtual
string
getKeyValuePairs
(
int
id
)
virtual
string
getKeyValuePairs
(
int
new_id
,
int
id
)
{
{
return
"This will never run"
;
return
"This will never run"
;
}
}
...
@@ -75,9 +75,9 @@ public:
...
@@ -75,9 +75,9 @@ public:
mycache
.
pushAll
();
mycache
.
pushAll
();
}
}
string
getKeyValuePairs
(
int
id
)
string
getKeyValuePairs
(
int
new_id
,
int
id
)
{
{
return
mycache
.
getKeyValuePairs
(
id
);
return
mycache
.
getKeyValuePairs
(
new_id
,
id
);
}
}
};
};
...
@@ -124,8 +124,8 @@ public:
...
@@ -124,8 +124,8 @@ public:
}
}
// key1;key2;key3;;value1;value2;value3;
// key1;key2;key3;;value1;value2;value3;
string
getKeyValuePairs
(
int
id
)
string
getKeyValuePairs
(
int
new_id
,
int
id
)
{
{
return
mycache
.
getKeyValuePairs
(
id
);
return
mycache
.
getKeyValuePairs
(
new_id
,
id
);
}
}
};
};
\ No newline at end of file
client.cpp
View file @
93938e76
...
@@ -160,7 +160,7 @@ void RunClient() {
...
@@ -160,7 +160,7 @@ void RunClient() {
Info
info
;
Info
info
;
ClientContext
context
;
ClientContext
context
;
Status
status
=
stub
->
GETADDRESS
(
&
context
,
null
,
&
info
);
Status
status
=
stub
->
GETADDRESS
(
&
context
,
null
,
&
info
);
std
::
cout
<<
"Server: "
<<
info
.
address
()
<<
std
::
endl
;
std
::
cout
<<
"
Connected to
Server: "
<<
info
.
address
()
<<
std
::
endl
;
std
::
string
target_address
(
info
.
address
());
std
::
string
target_address
(
info
.
address
());
// Instantiates the client
// Instantiates the client
KeyValueServicesClient
client
(
KeyValueServicesClient
client
(
...
...
server.cpp
View file @
93938e76
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment