Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
key-value-store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Samarth Joshi
key-value-store
Commits
e6b5d19f
Commit
e6b5d19f
authored
Nov 10, 2020
by
Shivaji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.cse.iitb.ac.in/samarthjoshi/key-value-store
into lru-sample
parents
ff60bc86
833a0f17
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
Graph_Throughput_vs_Load.jpg
Graph_Throughput_vs_Load.jpg
+0
-0
KVClient.c
KVClient.c
+3
-0
KVServer.c
KVServer.c
+2
-0
README
README
+25
-0
No files found.
Graph_Throughput_vs_Load.jpg
0 → 100644
View file @
e6b5d19f
42.4 KB
KVClient.c
View file @
e6b5d19f
...
@@ -213,6 +213,9 @@ int main(int argc, char const *argv[])
...
@@ -213,6 +213,9 @@ int main(int argc, char const *argv[])
if
(
seige_mode
==
0
)
{
if
(
seige_mode
==
0
)
{
sock
=
client_init
();
sock
=
client_init
();
printf
(
"To send GET message type: get key
\n
"
);
printf
(
"To send PUT message type: put key value
\n
"
);
printf
(
"To send DEL message type: del key
\n
"
);
interactive
(
sock
);
interactive
(
sock
);
return
0
;
return
0
;
}
else
{
}
else
{
...
...
KVServer.c
View file @
e6b5d19f
...
@@ -206,6 +206,8 @@ int main (int argc, int argv) {
...
@@ -206,6 +206,8 @@ int main (int argc, int argv) {
listen
(
sockfd
,
5
);
listen
(
sockfd
,
5
);
clilen
=
sizeof
(
cli_addr
);
clilen
=
sizeof
(
cli_addr
);
printf
(
"Listening on port %d
\n
"
,
settings
->
listening_port
);
init_cache
(
settings
->
cache_size
);
init_cache
(
settings
->
cache_size
);
storage_init
();
storage_init
();
...
...
README
0 → 100644
View file @
e6b5d19f
Roshan Sahu 203050048 sroshan@cse.iitb.ac.in
Shivaji Chirumamilla 203050056 shivaji@cse.iitb.ac.in
Samarth Joshi 203059008 samarthjoshi@cse.iitb.ac.in
To BUILD code run command
make
To RUN server run command
./Server
To RUN client run command
./Client
To put a key
put <key> <value>
To get key -value
get <key>
To delete a key
del <key>
To edit configuration edit settings.conf file
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