Function SetUnixSocketPath

Synopsis

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

void SetUnixSocketPath(const std::string &unixSocketPath)

Description

set CURLOPT_UNIX_SOCKET_PATH

set custom Unix socket path for connection. See https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html

Parameters

unixSocketPath - - path to Unix socket (ex: /var/run/docker.sock)

Mentioned in

Source

Lines 332-335 in source/connection.cc. Line 206 in include/restclient-cpp/connection.h.

void
RestClient::Connection::SetUnixSocketPath(const std::string& unixSocketPath) {
  this->unixSocketPath = unixSocketPath;
}





Add Discussion as Guest

Log in