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,
920 std::ostream&
print(std::ostream& stream,
922 int spacesPerLevel = 4)
const;
942 std::ostream& stream,
const SessionOptions& sessionOptions);
965 #if BLPAPI_COMPAT_33X 998 const char *serverHost,
unsigned short serverPort,
size_t index)
1005 unsigned short serverPort,
1021 d_handle_p, timeoutMilliSeconds));
1030 const char *serviceIdentifier)
1033 d_handle_p, serviceIdentifier);
1042 bool newAllowMultipleCorrelatorsPerMsg)
1045 d_handle_p, newAllowMultipleCorrelatorsPerMsg);
1050 #if BLPAPI_COMPAT_33X 1060 d_handle_p, newMaxPendingRequests);
1066 d_handle_p, autoRestart ? 1 : 0);
1072 blpapi_CorrelationId_t cidHandle = cid.impl();
1076 d_handle_p, authOptions.
handle(), &cidHandle));
1094 d_handle_p, eventQueueSize);
1102 d_handle_p, hiWaterMark));
1110 d_handle_p, loWaterMark));
1118 d_handle_p, inactivityTime));
1122 int responseTimeout)
1126 d_handle_p, responseTimeout));
1132 d_handle_p, isEnabled));
1139 d_handle_p, shouldRecrod);
1146 d_handle_p, timeoutMsecs));
1153 d_handle_p, timeoutMsecs));
1159 (d_handle_p, tlsOptions.
handle());
1166 d_handle_p, timeoutMsecs));
1173 d_handle_p, isDisabled));
1183 return static_cast<unsigned short>(
1189 return static_cast<size_t>(
1194 unsigned short *serverPortOut,
1198 d_handle_p, serverHostOut, serverPortOut, index);
1202 unsigned short *serverPortOut,
1206 const char *socks5ConfigHost = 0;
1207 unsigned short socks5ConfigPort = 0;
1216 if (socks5ConfigHost) {
1217 *socksConfig =
Socks5Config(socks5ConfigHost, socks5ConfigPort);
1343 const std::string& applicationIdentityKey)
1357 &apik, &size, d_handle_p));
1358 return std::string(apik, size);
1367 std::ostream& stream,
int indentLevel,
int spacesPerLevel)
const 1383 return sessionOptions.
print(stream, 0, -1);
1389 #endif // #ifdef __cplusplus 1390 #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:1238
int numStartAttempts() const
Definition: blpapi_sessionoptions.h:1270
void setBandwidthSaveModeDisabled(bool isDisabled)
Definition: blpapi_sessionoptions.h:1169
std::ostream & print(std::ostream &stream, int indentLevel=0, int spacesPerLevel=4) const
Definition: blpapi_sessionoptions.h:1366
#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:997
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:1018
void setAuthenticationOptions(const char *authOptions)
Definition: blpapi_sessionoptions.h:1081
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:1250
void blpapi_SessionOptions_setAutoRestartOnDisconnection(blpapi_SessionOptions_t *parameters, int autoRestart)
float slowConsumerWarningLoWaterMark() const
Definition: blpapi_sessionoptions.h:1285
#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:1097
SessionOptions()
Definition: blpapi_sessionoptions.h:962
#define BLPAPI_CLIENTMODE_AUTO
Definition: blpapi_defs.h:109
std::string applicationIdentityKey()
Definition: blpapi_sessionoptions.h:1351
int blpapi_SessionOptions_maxPendingRequests(blpapi_SessionOptions_t *parameters)
Common definitions used by the library.
void setFlushPublishedEventsTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1162
Definition: blpapi_tlsoptions.h:188
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:1156
Definition: blpapi_abstractsession.h:215
Always connect to the server API.
Definition: blpapi_sessionoptions.h:437
const char * serverHost() const
Definition: blpapi_sessionoptions.h:1176
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
void setRecordSubscriptionDataReceiveTimes(bool shouldRecord)
Definition: blpapi_sessionoptions.h:1135
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:1361
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:1328
const char * defaultSubscriptionService() const
Definition: blpapi_sessionoptions.h:1233
~SessionOptions()
Definition: blpapi_sessionoptions.h:976
int blpapi_SessionOptions_numStartAttempts(blpapi_SessionOptions_t *parameters)
void setAutoRestartOnDisconnection(bool autoRestart)
Definition: blpapi_sessionoptions.h:1063
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
#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:992
size_t numServerAddresses() const
Definition: blpapi_sessionoptions.h:1187
#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:1048
#define BLPAPI_CLIENTMODE_DAPI
Definition: blpapi_defs.h:110
void setServiceCheckTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1142
bool keepAliveEnabled() const
Definition: blpapi_sessionoptions.h:1302
int serviceCheckTimeout() const
Definition: blpapi_sessionoptions.h:1317
int removeServerAddress(size_t index)
Definition: blpapi_sessionoptions.h:1013
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:1057
#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:987
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:1041
int blpapi_SessionOptions_clientMode(blpapi_SessionOptions_t *parameters)
Provide a key to identify individual subscriptions or requests.
bool autoRestartOnDisconnection() const
Definition: blpapi_sessionoptions.h:1260
Provides configuration settings for authorization.
bool bandwidthSaveModeDisabled() const
Definition: blpapi_sessionoptions.h:1334
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:1086
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:1296
void setDefaultKeepAliveResponseTimeout(int timeoutMsecs)
Definition: blpapi_sessionoptions.h:1121
int blpapi_SessionOptions_defaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_numServerAddresses(blpapi_SessionOptions_t *parameters)
ClientMode
Definition: blpapi_sessionoptions.h:430
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:1149
size_t blpapi_SessionOptions_maxEventQueueSize(blpapi_SessionOptions_t *parameters)
void setDefaultTopicPrefix(const char *prefix)
Definition: blpapi_sessionoptions.h:1036
int blpapi_SessionOptions_setApplicationIdentityKey(blpapi_SessionOptions_t *parameters, const char *applicationIdentityKey, size_t size)
void setDefaultKeepAliveInactivityTime(int inactivityMsecs)
Definition: blpapi_sessionoptions.h:1113
#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:1309
Definition: blpapi_correlationid.h:201
Provide description of Socks5 proxy.
void setKeepAliveEnabled(bool isEnabled)
Definition: blpapi_sessionoptions.h:1129
int serviceDownloadTimeout() const
Definition: blpapi_sessionoptions.h:1322
unsigned short serverPort() const
Definition: blpapi_sessionoptions.h:1181
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:1280
SessionOptions & operator=(const SessionOptions &rhs)
Definition: blpapi_sessionoptions.h:981
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition: blpapi_types.h:178
CorrelationId setSessionIdentityOptions(const AuthOptions &authOptions, const CorrelationId &correlationId=CorrelationId())
Definition: blpapi_sessionoptions.h:1069
int defaultKeepAliveInactivityTime() const
Definition: blpapi_sessionoptions.h:1290
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:434
const char * blpapi_SessionOptions_defaultTopicPrefix(blpapi_SessionOptions_t *parameters)
int maxPendingRequests() const
Definition: blpapi_sessionoptions.h:1255
blpapi_SessionOptions_t * blpapi_SessionOptions_duplicate(const blpapi_SessionOptions_t *parameters)
size_t maxEventQueueSize() const
Definition: blpapi_sessionoptions.h:1275
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:1265
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:1029
int blpapi_SessionOptions_setDefaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters, int timeoutMsecs)
const char * defaultServices() const
Definition: blpapi_sessionoptions.h:1228
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 setSlowConsumerWarningLoWaterMark(float loWaterMark)
Definition: blpapi_sessionoptions.h:1105
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:1193
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:1243
#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:431
#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:1024
void blpapi_SessionOptions_setDefaultTopicPrefix(blpapi_SessionOptions_t *parameters, const char *prefix)
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:1223
Definition: blpapi_sessionoptions.h:421
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:1091
void setApplicationIdentityKey(const std::string &applicationIdentityKey)
Definition: blpapi_sessionoptions.h:1342
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