Skip to content

class::KEENIO_CLIENT

UberSnip Developers edited this page Mar 30, 2016 · 1 revision

KeenIO C++ Client - Class Overview

Variables

//PRIVATE VARIABLES
string _method = "GET";

//PUBLIC VARIABLES
string body; //BODY RESPONSE OF KEENIO_HTTP
KEENIO_HTTP kHTTP; //HTTP HANDLER
bool err = false; //ERROR DETECTION

Functions

GET or SET the request method GET,POST

string method(string _get_post_method = "");

WinSock helper class to ensure we receive all bytes of data.

bool recvraw(SOCKET socket, char *buf, int buflen)

Sends the actual request to KeenIO, and returns JSON resoponse. Response is stored as variable KEENIO_CLIENT::body.

int request(KEENIO_HTTP kHTTP)

Clone this wiki locally