28 #ifndef INCLUDED_BLPAPI_SOCKS5CONFIG 29 #define INCLUDED_BLPAPI_SOCKS5CONFIG 72 const char *hostname,
size_t hostname_size,
unsigned short port);
103 class SessionOptions;
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);
206 #endif // #ifdef __cplusplus 207 #endif // #ifndef INCLUDED_BLPAPI_SOCKS5CONFIG ~Socks5Config()
Definition: blpapi_socks5config.h:189
blpapi_Socks5Config_t * blpapi_Socks5Config_create(const char *hostname, size_t hostname_size, unsigned short port)
std::ostream & print(std::ostream &stream, int indentLevel, int spacesPerLevel) const
Definition: blpapi_socks5config.h:166
int blpapi_Socks5Config_print(blpapi_Socks5Config_t *socks5Config, blpapi_StreamWriter_t streamWriter, void *userStream, int indentLevel, int spacesPerLevel)
int blpapi_Socks5Config_copy(blpapi_Socks5Config_t **socks5Config, blpapi_Socks5Config_t *srcSocks5Config)
Common definitions used by the library.
Definition: blpapi_abstractsession.h:215
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
struct blpapi_Socks5Config blpapi_Socks5Config_t
Definition: blpapi_types.h:175
Definition: blpapi_socks5config.h:112
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
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
Socks5Config & operator=(const Socks5Config &)
Definition: blpapi_socks5config.h:159
void blpapi_Socks5Config_destroy(blpapi_Socks5Config_t *socks5Config)
A signature for callback on print and default C++ implementation.
Socks5Config()
Definition: blpapi_socks5config.h:148
Defines Exceptions that can be thrown by the blpapi library.
#define BLPAPI_CALL_UNCHECKED(FUNCNAME)
Definition: blpapi_call.h:354
static int writeToStream(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:93
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Provide functions for dispatchtbl.