Commit fc9a0536 authored by Saikumar's avatar Saikumar

uploaded previous client.h file

parent 251ecd4f
// 1. connection to server // 1. connection to server
// 2. KV communication functions // 2. KV communication functions
#include <iostream>
#include <list>
#include <iterator>
#include <string>
#include <unordered_map>
using namespace std;
int connectToServer(char *addr, char *portNo); int connectToServer(char *addr, char *portNo);
void sendToServer(int sockfd);
int GET(char* key, int sockfd); int GET(char* key, char *request);
int PUT(char* key, char* value, int sockfd); int PUT(char* key, char* value, char *request);
int DEL(char* key, int sockfd); int DELETE(char* key, char *request);
void terminateConnection(); void terminateConnection(char *request);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment