Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

A C++ client test implementation. #39

Open
Sanix-Darker opened this issue Nov 29, 2019 · 0 comments
Open

A C++ client test implementation. #39

Sanix-Darker opened this issue Nov 29, 2019 · 0 comments

Comments

@Sanix-Darker
Copy link

Sanix-Darker commented Nov 29, 2019

Is it possible to have a client test implementation like the one in python please ?
In the README or in the ./test/ directory.
Something like this... idk :

#include <iostream>
#include "../lib/Client.h"

int main(void)
{
    SOCKETDESC scktd;

    Client memcache_client(&scktd);

    if(memcache_client.connect("127.0.0.1", 11211))
    {
        std::cout << "[+] Success connection has been etablished with the memcached server !";
        //memcache_client.set("key","my value !");
    }
    else
    {
        std::cout << "[-] Error connection with memcached server !";
    }
    std::cout << "[-] Test !\n";

    return 0;
}

Please help !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant