28 #ifndef INCLUDED_BLPAPI_SESSIONOPTIONS 29 #define INCLUDED_BLPAPI_SESSIONOPTIONS 90 #ifndef INCLUDED_BLPAPI_CALL 94 #ifndef INCLUDED_BLPAPI_CORRELATIONID 98 #ifndef INCLUDED_BLPAPI_DEFS 102 #ifndef INCLUDED_BLPAPI_EXCEPTION 106 #ifndef INCLUDED_BLPAPI_STREAMPROXY 110 #ifndef INCLUDED_BLPAPI_TLSOPTIONS 114 #ifndef INCLUDED_BLPAPI_TYPES 153 const char *serverHost,
154 unsigned short serverPort,
160 const char *serverHost,
161 unsigned short serverPort,
172 unsigned int timeoutInMilliseconds);
189 int allowMultipleCorrelatorsPerMsg);
210 blpapi_CorrelationId_t *cid);
282 const char **serverHost,
283 unsigned short *serverPort,
289 const char **serverHost,
290 unsigned short *serverPort,
291 const char **socks5Host,
292 unsigned short *sock5Port,
391 const char *applicationIdentityKey,
395 const char **applicationIdentityKey,
401 const char *sessionName,
941 std::ostream&
print(std::ostream& stream,
943 int spacesPerLevel = 4)
const;
963 std::ostream& stream,
const SessionOptions& sessionOptions);
986 #if BLPAPI_COMPAT_33X 1019 const char *serverHost,
unsigned short serverPort,
size_t index)
1026 unsigned short serverPort,
1042 d_handle_p, timeoutMilliSeconds));
1051 const char *serviceIdentifier)
1054 d_handle_p, serviceIdentifier);
1063 bool newAllowMultipleCorrelatorsPerMsg)
1066 d_handle_p, newAllowMultipleCorrelatorsPerMsg);
1071 #if BLPAPI_COMPAT_33X 1081 d_handle_p, newMaxPendingRequests);
1087 d_handle_p, autoRestart ? 1 : 0);
1093 blpapi_CorrelationId_t cidHandle = cid.impl();
1097 d_handle_p, authOptions.
handle(), &cidHandle));
1115 d_handle_p, eventQueueSize);
1123 d_handle_p, hiWaterMark));
1131 d_handle_p, loWaterMark));
1139 d_handle_p, inactivityTime));
1143 int responseTimeout)
1147 d_handle_p, responseTimeout));
1153 d_handle_p, isEnabled));
1160 d_handle_p, shouldRecrod);
1167 d_handle_p, timeoutMsecs));
1174 d_handle_p, timeoutMsecs));
1180 (d_handle_p, tlsOptions.
handle());
1187 d_handle_p, timeoutMsecs));
1194 d_handle_p, isDisabled));
1204 return static_cast<unsigned short>(
1210 return static_cast<size_t>(
1215 unsigned short *serverPortOut,
1219 d_handle_p, serverHostOut, serverPortOut, index);
1223 unsigned short *serverPortOut,
1227 const char *socks5ConfigHost = 0;
1228 unsigned short socks5ConfigPort = 0;
1237 if (socks5ConfigHost) {
1238 *socksConfig =
Socks5Config(socks5ConfigHost, socks5ConfigPort);
1364 const std::string& applicationIdentityKey)
1378 &apik, &size, d_handle_p));
1379 return std::string(apik, size);
1404 std::ostream& stream,
int indentLevel,
int spacesPerLevel)
const 1420 return sessionOptions.
print(stream, 0, -1);
1426 #endif // #ifdef __cplusplus 1427 #endif // #ifndef INCLUDED_BLPAPI_SESSIONOPTIONS #define BLPAPI_CALL_SESSIONOPTIONS_DEFAULTKEEPALIVERESPONSETIMEOUT(a1)
Definition: blpapi_call.h:380
int blpapi_SessionOptions_print(blpapi_SessionOptions_t *parameters, blpapi_StreamWriter_t streamWriter, void *stream, int indentLevel, int spacesPerLevel)
const char * defaultTopicPrefix() const
Definition: blpapi_sessionoptions.h:1259
int numStartAttempts() const
Definition: blpapi_sessionoptions.h:1291
void setBandwidthSaveModeDisabled(bool isDisabled)
Definition: blpapi_sessionoptions.h:1190
std::ostream & print(std::ostream &stream, int indentLevel=0, int spacesPerLevel=4) const
Definition: blpapi_sessionoptions.h:1403
#define BLPAPI_CALL_SESSIONOPTIONS_SETBANDWIDTHSAVEMODEDISABLED(a1, a2)
Definition: blpapi_call.h:390
#define BLPAPI_CLIENTMODE_COMPAT_33X
Definition: blpapi_defs.h:112
int setServerAddress(const char *serverHost, unsigned short serverPort, size_t index)
Definition: blpapi_sessionoptions.h:1018
unsigned int blpapi_SessionOptions_serverPort(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_autoRestartOnDisconnection(blpapi_SessionOptions_t *parameters)
void setConnectTimeout(unsigned int timeoutMilliSeconds)
Definition: blpapi_sessionoptions.h:1039
void setAuthenticationOptions(const char *authOptions)
Definition: blpapi_sessionoptions.h:1102
const char * blpapi_SessionOptions_serverHost(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_flushPublishedEventsTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_setServiceDownloadTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
const char * blpapi_SessionOptions_authenticationOptions(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_setSlowConsumerWarningHiWaterMark(blpapi_SessionOptions_t *parameters, float hiWaterMark)
int clientMode() const
Definition: blpapi_sessionoptions.h:1271
void blpapi_SessionOptions_setAutoRestartOnDisconnection(blpapi_SessionOptions_t *parameters, int autoRestart)
float slowConsumerWarningLoWaterMark() const
Definition: blpapi_sessionoptions.h:1306
#define BLPAPI_CALL_SESSIONOPTIONS_SETDEFAULTKEEPALIVEINACTIVITYTIME(a1, a2)
Definition: blpapi_call.h:384
int blpapi_SessionOptions_setSessionIdentityOptions(blpapi_SessionOptions_t *parameters, const blpapi_AuthOptions_t *authOptions, blpapi_CorrelationId_t *cid)
#define BLPAPI_CALL_SESSIONOPTIONS_SETSLOWCONSUMERHIWATERMARK(a1, a2)
Definition: blpapi_call.h:364
void setSlowConsumerWarningHiWaterMark(float hiWaterMark)
Definition: blpapi_sessionoptions.h:1118
SessionOptions()
Definition: blpapi_sessionoptions.h:983
#define BLPAPI_CLIENTMODE_AUTO
Definition: blpapi_defs.h:109
std::string applicationIdentityKey()
Definition: blpapi_sessionoptions.h:1372
int blpapi_SessionOptions_maxPendingRequests(blpapi_SessionOptions_t *parameters)
Common definitions used by the library.
void setFlushPublishedEventsTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1183
Definition: blpapi_tlsoptions.h:188
int blpapi_SessionOptions_sessionName(const char **sessionName, size_t *size, blpapi_SessionOptions_t *parameters)
void blpapi_SessionOptions_setNumStartAttempts(blpapi_SessionOptions_t *parameters, int numStartAttempts)
int blpapi_SessionOptions_setServerAddress(blpapi_SessionOptions_t *parameters, const char *serverHost, unsigned short serverPort, size_t index)
const char * blpapi_SessionOptions_defaultServices(blpapi_SessionOptions_t *parameters)
blpapi_TlsOptions_t * handle() const
Definition: blpapi_tlsoptions.h:344
void setTlsOptions(const TlsOptions &tlsOptions)
Definition: blpapi_sessionoptions.h:1177
Definition: blpapi_abstractsession.h:220
Always connect to the server API.
Definition: blpapi_sessionoptions.h:447
const char * serverHost() const
Definition: blpapi_sessionoptions.h:1197
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
void setRecordSubscriptionDataReceiveTimes(bool shouldRecord)
Definition: blpapi_sessionoptions.h:1156
int blpapi_SessionOptions_setKeepAliveEnabled(blpapi_SessionOptions_t *parameters, int isEnabled)
struct blpapi_Socks5Config blpapi_Socks5Config_t
Definition: blpapi_types.h:175
blpapi_SessionOptions_t * handle() const
Definition: blpapi_sessionoptions.h:1398
int blpapi_SessionOptions_setServerPort(blpapi_SessionOptions_t *parameters, unsigned short serverPort)
int blpapi_SessionOptions_setDefaultKeepAliveInactivityTime(blpapi_SessionOptions_t *parameters, int inactivityMsecs)
int flushPublishedEventsTimeout() const
Definition: blpapi_sessionoptions.h:1349
const char * defaultSubscriptionService() const
Definition: blpapi_sessionoptions.h:1254
~SessionOptions()
Definition: blpapi_sessionoptions.h:997
int blpapi_SessionOptions_numStartAttempts(blpapi_SessionOptions_t *parameters)
void setAutoRestartOnDisconnection(bool autoRestart)
Definition: blpapi_sessionoptions.h:1084
Definition: blpapi_socks5config.h:112
Definition: blpapi_authoptions.h:194
blpapi_SessionOptions_t * blpapi_SessionOptions_create(void)
const char * blpapi_SessionOptions_defaultSubscriptionService(blpapi_SessionOptions_t *parameters)
#define BLPAPI_CALL_SESSIONOPTIONS_DEFAULTKEEPALIVEINACTIVITYTIME(a1)
Definition: blpapi_call.h:378
std::string sessionName()
Definition: blpapi_sessionoptions.h:1389
#define BLPAPI_CALL_SESSIONOPTIONS_SLOWCONSUMERHIWATERMARK(a1)
Definition: blpapi_call.h:373
int blpapi_SessionOptions_setFlushPublishedEventsTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
void setServerPort(unsigned short port)
Definition: blpapi_sessionoptions.h:1013
size_t numServerAddresses() const
Definition: blpapi_sessionoptions.h:1208
#define BLPAPI_CALL_SESSIONOPTIONS_MAXEVENTQUEUESIZE(a1)
Definition: blpapi_call.h:371
void blpapi_SessionOptions_destroy(blpapi_SessionOptions_t *parameters)
void setClientMode(int clientMode)
Definition: blpapi_sessionoptions.h:1069
#define BLPAPI_CLIENTMODE_DAPI
Definition: blpapi_defs.h:110
void setServiceCheckTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1163
bool keepAliveEnabled() const
Definition: blpapi_sessionoptions.h:1323
int serviceCheckTimeout() const
Definition: blpapi_sessionoptions.h:1338
int removeServerAddress(size_t index)
Definition: blpapi_sessionoptions.h:1034
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:53
int blpapi_SessionOptions_serviceCheckTimeout(blpapi_SessionOptions_t *parameters)
void blpapi_SessionOptions_copy(blpapi_SessionOptions_t *lhs, const blpapi_SessionOptions_t *rhs)
#define BLPAPI_CALL_SESSIONOPTION_RECORDSUBSCRIPTIONDATARECEIVETIMES(a1)
Definition: blpapi_call.h:458
blpapi_AuthOptions_t * handle() const
Definition: blpapi_authoptions.h:491
void setMaxPendingRequests(int maxPendingRequests)
Definition: blpapi_sessionoptions.h:1078
#define BLPAPI_CALL_SESSIONOPTIONS_KEEPALIVEENABLED(a1)
Definition: blpapi_call.h:382
#define BLPAPI_CALL_SESSIONOPTIONS_SLOWCONSUMERLOWATERMARK(a1)
Definition: blpapi_call.h:375
void setServerHost(const char *host)
Definition: blpapi_sessionoptions.h:1008
int blpapi_SessionOptions_autoRestart(blpapi_SessionOptions_t *parameters)
#define BLPAPI_CALL_SESSIONOPTION_SETRECORDSUBSCRIPTIONDATARECEIVETIMES( a1, a2)
Definition: blpapi_call.h:455
void setAllowMultipleCorrelatorsPerMsg(bool allowMultipleCorrelatorsPerMsg)
Definition: blpapi_sessionoptions.h:1062
int blpapi_SessionOptions_clientMode(blpapi_SessionOptions_t *parameters)
Provide a key to identify individual subscriptions or requests.
bool autoRestartOnDisconnection() const
Definition: blpapi_sessionoptions.h:1281
Provides configuration settings for authorization.
bool bandwidthSaveModeDisabled() const
Definition: blpapi_sessionoptions.h:1355
void blpapi_SessionOptions_setTlsOptions(blpapi_SessionOptions_t *paramaters, const blpapi_TlsOptions_t *tlsOptions)
#define BLPAPI_CALL_SESSIONOPTIONS_SETSLOWCONSUMERLOWATERMARK(a1, a2)
Definition: blpapi_call.h:366
int blpapi_SessionOptions_defaultKeepAliveInactivityTime(blpapi_SessionOptions_t *parameters)
void setNumStartAttempts(int numStartAttempts)
Definition: blpapi_sessionoptions.h:1107
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
unsigned int blpapi_SessionOptions_connectTimeout(blpapi_SessionOptions_t *parameters)
int defaultKeepAliveResponseTimeout() const
Definition: blpapi_sessionoptions.h:1317
void setDefaultKeepAliveResponseTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1142
int blpapi_SessionOptions_defaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_numServerAddresses(blpapi_SessionOptions_t *parameters)
ClientMode
Definition: blpapi_sessionoptions.h:440
int blpapi_SessionOptions_removeServerAddress(blpapi_SessionOptions_t *parameters, size_t index)
struct blpapi_AuthOptions blpapi_AuthOptions_t
Definition: blpapi_types.h:203
void setServiceDownloadTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1170
size_t blpapi_SessionOptions_maxEventQueueSize(blpapi_SessionOptions_t *parameters)
void setDefaultTopicPrefix(const char *prefix)
Definition: blpapi_sessionoptions.h:1057
int blpapi_SessionOptions_setApplicationIdentityKey(blpapi_SessionOptions_t *parameters, const char *applicationIdentityKey, size_t size)
void setDefaultKeepAliveInactivityTime(int inactivityMsecs)
Definition: blpapi_sessionoptions.h:1134
#define BLPAPI_CALL_SESSIONOPTIONS_SETDEFAULTKEEPALIVERESPONSETIMEOUT(a1, a2)
Definition: blpapi_call.h:386
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
int blpapi_SessionOptions_setServerAddressWithProxy(blpapi_SessionOptions_t *parameters, const char *serverHost, unsigned short serverPort, const blpapi_Socks5Config_t *socks5Config, size_t index)
bool recordSubscriptionDataReceiveTimes() const
Definition: blpapi_sessionoptions.h:1330
Definition: blpapi_correlationid.h:201
Provide description of Socks5 proxy.
void setKeepAliveEnabled(bool isEnabled)
Definition: blpapi_sessionoptions.h:1150
int serviceDownloadTimeout() const
Definition: blpapi_sessionoptions.h:1343
unsigned short serverPort() const
Definition: blpapi_sessionoptions.h:1202
void blpapi_SessionOptions_setMaxEventQueueSize(blpapi_SessionOptions_t *parameters, size_t maxEventQueueSize)
void blpapi_SessionOptions_setAutoRestart(blpapi_SessionOptions_t *parameters, int autoRestart)
float slowConsumerWarningHiWaterMark() const
Definition: blpapi_sessionoptions.h:1301
SessionOptions & operator=(const SessionOptions &rhs)
Definition: blpapi_sessionoptions.h:1002
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition: blpapi_types.h:178
CorrelationId setSessionIdentityOptions(const AuthOptions &authOptions, const CorrelationId &correlationId=CorrelationId())
Definition: blpapi_sessionoptions.h:1090
int defaultKeepAliveInactivityTime() const
Definition: blpapi_sessionoptions.h:1311
A signature for callback on print and default C++ implementation.
int blpapi_SessionOptions_setDefaultServices(blpapi_SessionOptions_t *parameters, const char *defaultServices)
void blpapi_SessionOptions_setMaxPendingRequests(blpapi_SessionOptions_t *parameters, int maxPendingRequests)
Always connect to the desktop API.
Definition: blpapi_sessionoptions.h:444
const char * blpapi_SessionOptions_defaultTopicPrefix(blpapi_SessionOptions_t *parameters)
int maxPendingRequests() const
Definition: blpapi_sessionoptions.h:1276
blpapi_SessionOptions_t * blpapi_SessionOptions_duplicate(const blpapi_SessionOptions_t *parameters)
size_t maxEventQueueSize() const
Definition: blpapi_sessionoptions.h:1296
int blpapi_SessionOptions_getServerAddress(blpapi_SessionOptions_t *parameters, const char **serverHost, unsigned short *serverPort, size_t index)
int blpapi_SessionOptions_recordSubscriptionDataReceiveTimes(blpapi_SessionOptions_t *parameters)
Maintain client credentials and trust material.
#define BLPAPI_CALL_SESSIONOPTIONS_BANDWIDTHSAVEMODEDISABLED(a1)
Definition: blpapi_call.h:392
int blpapi_SessionOptions_serviceDownloadTimeout(blpapi_SessionOptions_t *parameters)
void blpapi_SessionOptions_setAllowMultipleCorrelatorsPerMsg(blpapi_SessionOptions_t *parameters, int allowMultipleCorrelatorsPerMsg)
const char * authenticationOptions() const
Definition: blpapi_sessionoptions.h:1286
int blpapi_SessionOptions_setSlowConsumerWarningLoWaterMark(blpapi_SessionOptions_t *parameters, float loWaterMark)
Defines Exceptions that can be thrown by the blpapi library.
void setDefaultSubscriptionService(const char *serviceIdentifier)
Definition: blpapi_sessionoptions.h:1050
int blpapi_SessionOptions_setDefaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters, int timeoutMsecs)
const char * defaultServices() const
Definition: blpapi_sessionoptions.h:1249
void blpapi_SessionOptions_setAuthenticationOptions(blpapi_SessionOptions_t *parameters, const char *authOptions)
float blpapi_SessionOptions_slowConsumerWarningHiWaterMark(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_allowMultipleCorrelatorsPerMsg(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_setConnectTimeout(blpapi_SessionOptions_t *parameters, unsigned int timeoutInMilliseconds)
void setSessionName(const std::string &sessionName)
Definition: blpapi_sessionoptions.h:1382
void setSlowConsumerWarningLoWaterMark(float loWaterMark)
Definition: blpapi_sessionoptions.h:1126
static int writeToStream(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:93
int getServerAddress(const char **serverHost, unsigned short *serverPort, size_t index) const
Definition: blpapi_sessionoptions.h:1214
void blpapi_SessionOptions_setClientMode(blpapi_SessionOptions_t *parameters, int clientMode)
int blpapi_SessionOptions_getServerAddressWithProxy(blpapi_SessionOptions_t *parameters, const char **serverHost, unsigned short *serverPort, const char **socks5Host, unsigned short *sock5Port, size_t index)
bool allowMultipleCorrelatorsPerMsg() const
Definition: blpapi_sessionoptions.h:1264
#define BLPAPI_CALL_SESSIONOPTIONS_SETKEEPALIVEENABLED(a1, a2)
Definition: blpapi_call.h:388
int blpapi_SessionOptions_applicationIdentityKey(const char **applicationIdentityKey, size_t *size, blpapi_SessionOptions_t *parameters)
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Automatic (desktop if available otherwise server)
Definition: blpapi_sessionoptions.h:441
#define BLPAPI_CALL_AVAILABLE(FUNCNAME)
Definition: blpapi_call.h:352
struct blpapi_SessionOptions blpapi_SessionOptions_t
Definition: blpapi_types.h:172
Provide functions for dispatchtbl.
void setDefaultServices(const char *defaultServices)
Definition: blpapi_sessionoptions.h:1045
void blpapi_SessionOptions_setDefaultTopicPrefix(blpapi_SessionOptions_t *parameters, const char *prefix)
int blpapi_SessionOptions_setSessionName(blpapi_SessionOptions_t *parameters, const char *sessionName, size_t size)
int blpapi_SessionOptions_bandwidthSaveModeDisabled(blpapi_SessionOptions_t *parameters)
#define BLPAPI_CLIENTMODE_SAPI
Definition: blpapi_defs.h:111
Provide a collection of errors that library can return.
int blpapi_SessionOptions_setBandwidthSaveModeDisabled(blpapi_SessionOptions_t *parameters, int disableBandwidthSaveMode)
float blpapi_SessionOptions_slowConsumerWarningLoWaterMark(blpapi_SessionOptions_t *parameters)
unsigned int connectTimeout() const
Definition: blpapi_sessionoptions.h:1244
Definition: blpapi_sessionoptions.h:431
int blpapi_SessionOptions_setDefaultSubscriptionService(blpapi_SessionOptions_t *parameters, const char *serviceIdentifier)
void blpapi_SessionOptions_setRecordSubscriptionDataReceiveTimes(blpapi_SessionOptions_t *parameters, int shouldRecord)
int blpapi_SessionOptions_setServerHost(blpapi_SessionOptions_t *parameters, const char *serverHost)
void setMaxEventQueueSize(size_t eventQueueSize)
Definition: blpapi_sessionoptions.h:1112
void setApplicationIdentityKey(const std::string &applicationIdentityKey)
Definition: blpapi_sessionoptions.h:1363
int blpapi_SessionOptions_setServiceCheckTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
int blpapi_SessionOptions_keepAliveEnabled(blpapi_SessionOptions_t *parameters)
#define BLPAPI_CALL_SESSIONOPTIONS_SETMAXEVENTQUEUESIZE(a1, a2)
Definition: blpapi_call.h:362