28#ifndef INCLUDED_BLPAPI_SOCKS5CONFIG
29#define INCLUDED_BLPAPI_SOCKS5CONFIG
72 const char *hostname,
size_t hostname_size,
unsigned short port);
122 Socks5Config(
const std::string& hostName,
unsigned short port);
135 std::ostream& stream,
int indentLevel,
int spacesPerLevel)
const;
156 &d_handle, socks5Config.d_handle));
162 std::swap(d_handle, copy.d_handle);
168 int spacesPerLevel = 4)
const
180 std::ostream& stream,
const Socks5Config& socks5Config);
183 const std::string& hostname,
unsigned short port)
186 hostname.c_str(), hostname.size(), port);
199 socks5Config.
print(stream, 0, -1);
Provide functions for dispatchtbl.
#define BLPAPI_CALL_UNCHECKED(FUNCNAME)
Definition blpapi_call.h:354
#define BLPAPI_CALL(FUNCNAME)
Definition blpapi_call.h:353
Common definitions used by the library.
#define BLPAPI_EXPORT
Definition blpapi_defs.h:171
Defines Exceptions that can be thrown by the blpapi library.
BLPAPI_EXPORT blpapi_Socks5Config_t * blpapi_Socks5Config_create(const char *hostname, size_t hostname_size, unsigned short port)
BLPAPI_EXPORT int blpapi_Socks5Config_copy(blpapi_Socks5Config_t **socks5Config, blpapi_Socks5Config_t *srcSocks5Config)
BLPAPI_EXPORT void blpapi_Socks5Config_destroy(blpapi_Socks5Config_t *socks5Config)
BLPAPI_EXPORT int blpapi_Socks5Config_print(blpapi_Socks5Config_t *socks5Config, blpapi_StreamWriter_t streamWriter, void *userStream, int indentLevel, int spacesPerLevel)
A signature for callback on print and default C++ implementation.
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition blpapi_streamproxy.h:53
static void throwOnError(int errorCode)
Definition blpapi_exception.h:526
Definition blpapi_socks5config.h:112
Socks5Config()
Definition blpapi_socks5config.h:148
std::ostream & print(std::ostream &stream, int indentLevel, int spacesPerLevel) const
Definition blpapi_socks5config.h:166
Socks5Config & operator=(const Socks5Config &)
Definition blpapi_socks5config.h:159
~Socks5Config()
Definition blpapi_socks5config.h:189
struct blpapi_Socks5Config blpapi_Socks5Config_t
Definition blpapi_types.h:175
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition blpapi_correlationid.h:592
Definition blpapi_abstractsession.h:195
static int writeToStream(const char *data, int length, void *stream)
Definition blpapi_streamproxy.h:93