Function init

Synopsis

#include <include/restclient-cpp/restclient.h>

int init()

Description

init and disable functions

global init function. Call this before you start any threads.

Mentioned in

Source

Lines 27-34 in source/restclient.cc. Line 44 in include/restclient-cpp/restclient.h.

int RestClient::init() {
  CURLcode res = curl_global_init(CURL_GLOBAL_ALL);
  if (res == CURLE_OK) {
    return 0;
  } else {
    return 1;
  }
}





Add Discussion as Guest

Log in