36#ifndef INCLUDED_BLPAPI_SOCKS5CONFIG
37#define INCLUDED_BLPAPI_SOCKS5CONFIG
85blpapi_Socks5Config_t *blpapi_Socks5Config_create(
86 const char *hostname,
size_t hostname_size,
unsigned short port);
89int blpapi_Socks5Config_copy(blpapi_Socks5Config_t **socks5Config,
90 blpapi_Socks5Config_t *srcSocks5Config);
93void blpapi_Socks5Config_destroy(blpapi_Socks5Config_t *socks5Config);
96int blpapi_Socks5Config_print(blpapi_Socks5Config_t *socks5Config,
97 blpapi_StreamWriter_t streamWriter,
132 blpapi_Socks5Config_t *d_handle;
140 Socks5Config(
const std::string& hostName,
unsigned short port);
153 std::ostream& stream,
int indentLevel,
int spacesPerLevel)
const;
156 blpapi_Socks5Config_t *impl()
const;
174 &d_handle, socks5Config.d_handle));
180 std::swap(d_handle, copy.d_handle);
186 int spacesPerLevel = 4)
const
198 std::ostream& stream,
const Socks5Config& socks5Config);
201 const std::string& hostname,
unsigned short port)
203 d_handle =
BLPAPI_CALL(blpapi_Socks5Config_create)(
204 hostname.c_str(), hostname.size(), port);
212inline blpapi_Socks5Config_t *Socks5Config::impl()
const {
return d_handle; }
217 socks5Config.
print(stream, 0, -1);
Provide functions for dispatchtbl.
#define BLPAPI_CALL_UNCHECKED(FUNCNAME)
Definition blpapi_call.h:362
#define BLPAPI_CALL(FUNCNAME)
Definition blpapi_call.h:361
Common definitions used by the library.
Defines Exceptions that can be thrown by the blpapi library.
A signature for callback on print and default C++ implementation.
static void throwOnError(int errorCode)
Definition blpapi_exception.h:541
Definition blpapi_sessionoptions.h:447
Definition blpapi_socks5config.h:130
Socks5Config()
Definition blpapi_socks5config.h:166
std::ostream & print(std::ostream &stream, int indentLevel, int spacesPerLevel) const
Definition blpapi_socks5config.h:184
Socks5Config & operator=(const Socks5Config &)
Definition blpapi_socks5config.h:177
~Socks5Config()
Definition blpapi_socks5config.h:207
Definition blpapi_abstractsession.h:212
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition blpapi_correlationid.h:680
Definition blpapi_abstractsession.h:211
static int writeToStream(const char *data, int length, void *stream)
Definition blpapi_streamproxy.h:109