CreDB  0.1.0
Classes | Typedefs | Functions
Client.h File Reference
#include <cowlang/cow.h>
#include <cstdint>
#include <json/json.h>
#include <memory>
#include <set>
#include <tuple>
#include <unordered_map>
#include <vector>
#include "IsolationLevel.h"
#include "Witness.h"
#include "defines.h"
#include "event_id.h"
#include "ucrypto/ucrypto.h"

Go to the source code of this file.

Classes

class  Client
 Main interface to interact with a server through the client API. More...
 

Typedefs

using CollectionPtr = std::shared_ptr< Collection >
 Shorthand for a pointer to a collection.
 
typedef std::shared_ptr< Client > ClientPtr
 Shorthand for a pointer to a client connection.
 

Functions

ClientPtr create_client (const std::string &client_name, const std::string &server_name, const std::string &server_addr, uint16_t server_port=0)
 Create a new client connection. More...
 

Function Documentation

◆ create_client()

ClientPtr credb::create_client ( const std::string &  client_name,
const std::string &  server_name,
const std::string &  server_addr,
uint16_t  server_port = 0 
)

Create a new client connection.

Parameters
client_nameName to identify the clien twith
server_nameName of the server to connect to
server_addrHostname of the machine hosting the server
server_port[optional] Port of the server (if non-standard)