BLPAPI C++  3.24.6
blpapi_providersession.h File Reference

Provide a session that can be used for providing services. More...

#include <blpapi_abstractsession.h>
#include <blpapi_call.h>
#include <blpapi_correlationid.h>
#include <blpapi_defs.h>
#include <blpapi_event.h>
#include <blpapi_eventdispatcher.h>
#include <blpapi_identity.h>
#include <blpapi_request.h>
#include <blpapi_resolutionlist.h>
#include <blpapi_service.h>
#include <blpapi_sessionoptions.h>
#include <blpapi_subscriptionlist.h>
#include <blpapi_topic.h>
#include <blpapi_topiclist.h>
#include <blpapi_types.h>
#include <stddef.h>
#include <cassert>

Go to the source code of this file.

Classes

class  ProviderEventHandler
 
class  ServiceRegistrationOptions
 
class  ProviderSession
 

Namespaces

 BloombergLP
 
 BloombergLP::blpapi
 

Typedefs

typedef struct blpapi_ServiceRegistrationOptions blpapi_ServiceRegistrationOptions_t
 
typedef void(* blpapi_ProviderEventHandler_t) (blpapi_Event_t *event, blpapi_ProviderSession_t *session, void *userData)
 

Functions

blpapi_ProviderSession_tblpapi_ProviderSession_create (blpapi_SessionOptions_t *parameters, blpapi_ProviderEventHandler_t handler, blpapi_EventDispatcher_t *dispatcher, void *userData)
 
void blpapi_ProviderSession_destroy (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_start (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_startAsync (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_stop (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_stopAsync (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_nextEvent (blpapi_ProviderSession_t *session, blpapi_Event_t **eventPointer, unsigned int timeoutInMilliseconds)
 
int blpapi_ProviderSession_tryNextEvent (blpapi_ProviderSession_t *session, blpapi_Event_t **eventPointer)
 
int blpapi_ProviderSession_registerService (blpapi_ProviderSession_t *session, const char *serviceName, const blpapi_Identity_t *identity, blpapi_ServiceRegistrationOptions_t *registrationOptions)
 
int blpapi_ProviderSession_activateSubServiceCodeRange (blpapi_ProviderSession_t *session, const char *serviceName, int begin, int end, int priority)
 
int blpapi_ProviderSession_deactivateSubServiceCodeRange (blpapi_ProviderSession_t *session, const char *serviceName, int begin, int end)
 
int blpapi_ProviderSession_registerServiceAsync (blpapi_ProviderSession_t *session, const char *serviceName, const blpapi_Identity_t *identity, blpapi_CorrelationId_t *correlationId, blpapi_ServiceRegistrationOptions_t *registrationOptions)
 
int blpapi_ProviderSession_deregisterService (blpapi_ProviderSession_t *session, const char *serviceName)
 
int blpapi_ProviderSession_resolve (blpapi_ProviderSession_t *session, blpapi_ResolutionList_t *resolutionList, int resolveMode, const blpapi_Identity_t *identity)
 
int blpapi_ProviderSession_resolveAsync (blpapi_ProviderSession_t *session, const blpapi_ResolutionList_t *resolutionList, int resolveMode, const blpapi_Identity_t *identity)
 
int blpapi_ProviderSession_createTopics (blpapi_ProviderSession_t *session, blpapi_TopicList_t *topicList, int resolveMode, const blpapi_Identity_t *identity)
 
int blpapi_ProviderSession_createTopicsAsync (blpapi_ProviderSession_t *session, const blpapi_TopicList_t *topicList, int resolveMode, const blpapi_Identity_t *identity)
 
int blpapi_ProviderSession_getTopic (blpapi_ProviderSession_t *session, const blpapi_Message_t *message, blpapi_Topic_t **topic)
 
int blpapi_ProviderSession_createTopic (blpapi_ProviderSession_t *session, const blpapi_Message_t *message, blpapi_Topic_t **topic)
 
int blpapi_ProviderSession_createServiceStatusTopic (blpapi_ProviderSession_t *session, const blpapi_Service_t *service, blpapi_Topic_t **topic)
 
int blpapi_ProviderSession_deleteTopics (blpapi_ProviderSession_t *session, const blpapi_Topic_t **topics, size_t numTopics)
 
int blpapi_ProviderSession_terminateSubscriptionsOnTopics (blpapi_ProviderSession_t *session, const blpapi_Topic_t **topics, size_t numTopics, const char *message)
 
int blpapi_ProviderSession_publish (blpapi_ProviderSession_t *session, blpapi_Event_t *event)
 
int blpapi_ProviderSession_sendResponse (blpapi_ProviderSession_t *session, blpapi_Event_t *event, int isPartialResponse)
 
blpapi_AbstractSession_tblpapi_ProviderSession_getAbstractSession (blpapi_ProviderSession_t *session)
 
int blpapi_ProviderSession_flushPublishedEvents (blpapi_ProviderSession_t *session, int *allFlushed, int timeoutMsecs)
 
blpapi_ServiceRegistrationOptions_tblpapi_ServiceRegistrationOptions_create (void)
 
blpapi_ServiceRegistrationOptions_tblpapi_ServiceRegistrationOptions_duplicate (const blpapi_ServiceRegistrationOptions_t *parameters)
 
void blpapi_ServiceRegistrationOptions_destroy (blpapi_ServiceRegistrationOptions_t *parameters)
 
void blpapi_ServiceRegistrationOptions_copy (blpapi_ServiceRegistrationOptions_t *lhs, const blpapi_ServiceRegistrationOptions_t *rhs)
 
int blpapi_ServiceRegistrationOptions_addActiveSubServiceCodeRange (blpapi_ServiceRegistrationOptions_t *parameters, int start, int end, int priority)
 
void blpapi_ServiceRegistrationOptions_removeAllActiveSubServiceCodeRanges (blpapi_ServiceRegistrationOptions_t *parameters)
 
void blpapi_ServiceRegistrationOptions_setGroupId (blpapi_ServiceRegistrationOptions_t *parameters, const char *groupId, unsigned int groupIdLength)
 
int blpapi_ServiceRegistrationOptions_setServicePriority (blpapi_ServiceRegistrationOptions_t *parameters, int priority)
 
void blpapi_ServiceRegistrationOptions_setPartsToRegister (blpapi_ServiceRegistrationOptions_t *parameters, int parts)
 
int blpapi_ServiceRegistrationOptions_getGroupId (blpapi_ServiceRegistrationOptions_t *parameters, char *groupdIdBuffer, int *groupIdLength)
 
int blpapi_ServiceRegistrationOptions_getServicePriority (blpapi_ServiceRegistrationOptions_t *parameters)
 
int blpapi_ServiceRegistrationOptions_getPartsToRegister (blpapi_ServiceRegistrationOptions_t *parameters)
 

Detailed Description

Provide a session that can be used for providing services.

Typedef Documentation

◆ blpapi_ProviderEventHandler_t

typedef void(* blpapi_ProviderEventHandler_t) (blpapi_Event_t *event, blpapi_ProviderSession_t *session, void *userData)

◆ blpapi_ServiceRegistrationOptions_t

typedef struct blpapi_ServiceRegistrationOptions blpapi_ServiceRegistrationOptions_t

Function Documentation

◆ blpapi_ProviderSession_activateSubServiceCodeRange()

int blpapi_ProviderSession_activateSubServiceCodeRange ( blpapi_ProviderSession_t session,
const char *  serviceName,
int  begin,
int  end,
int  priority 
)

◆ blpapi_ProviderSession_create()

blpapi_ProviderSession_t* blpapi_ProviderSession_create ( blpapi_SessionOptions_t parameters,
blpapi_ProviderEventHandler_t  handler,
blpapi_EventDispatcher_t dispatcher,
void *  userData 
)

◆ blpapi_ProviderSession_createServiceStatusTopic()

int blpapi_ProviderSession_createServiceStatusTopic ( blpapi_ProviderSession_t session,
const blpapi_Service_t service,
blpapi_Topic_t **  topic 
)

◆ blpapi_ProviderSession_createTopic()

int blpapi_ProviderSession_createTopic ( blpapi_ProviderSession_t session,
const blpapi_Message_t message,
blpapi_Topic_t **  topic 
)

◆ blpapi_ProviderSession_createTopics()

int blpapi_ProviderSession_createTopics ( blpapi_ProviderSession_t session,
blpapi_TopicList_t topicList,
int  resolveMode,
const blpapi_Identity_t identity 
)

◆ blpapi_ProviderSession_createTopicsAsync()

int blpapi_ProviderSession_createTopicsAsync ( blpapi_ProviderSession_t session,
const blpapi_TopicList_t topicList,
int  resolveMode,
const blpapi_Identity_t identity 
)

◆ blpapi_ProviderSession_deactivateSubServiceCodeRange()

int blpapi_ProviderSession_deactivateSubServiceCodeRange ( blpapi_ProviderSession_t session,
const char *  serviceName,
int  begin,
int  end 
)

◆ blpapi_ProviderSession_deleteTopics()

int blpapi_ProviderSession_deleteTopics ( blpapi_ProviderSession_t session,
const blpapi_Topic_t **  topics,
size_t  numTopics 
)

◆ blpapi_ProviderSession_deregisterService()

int blpapi_ProviderSession_deregisterService ( blpapi_ProviderSession_t session,
const char *  serviceName 
)

◆ blpapi_ProviderSession_destroy()

void blpapi_ProviderSession_destroy ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_flushPublishedEvents()

int blpapi_ProviderSession_flushPublishedEvents ( blpapi_ProviderSession_t session,
int *  allFlushed,
int  timeoutMsecs 
)

◆ blpapi_ProviderSession_getAbstractSession()

blpapi_AbstractSession_t* blpapi_ProviderSession_getAbstractSession ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_getTopic()

int blpapi_ProviderSession_getTopic ( blpapi_ProviderSession_t session,
const blpapi_Message_t message,
blpapi_Topic_t **  topic 
)

◆ blpapi_ProviderSession_nextEvent()

int blpapi_ProviderSession_nextEvent ( blpapi_ProviderSession_t session,
blpapi_Event_t **  eventPointer,
unsigned int  timeoutInMilliseconds 
)

◆ blpapi_ProviderSession_publish()

int blpapi_ProviderSession_publish ( blpapi_ProviderSession_t session,
blpapi_Event_t event 
)

◆ blpapi_ProviderSession_registerService()

int blpapi_ProviderSession_registerService ( blpapi_ProviderSession_t session,
const char *  serviceName,
const blpapi_Identity_t identity,
blpapi_ServiceRegistrationOptions_t registrationOptions 
)

◆ blpapi_ProviderSession_registerServiceAsync()

int blpapi_ProviderSession_registerServiceAsync ( blpapi_ProviderSession_t session,
const char *  serviceName,
const blpapi_Identity_t identity,
blpapi_CorrelationId_t *  correlationId,
blpapi_ServiceRegistrationOptions_t registrationOptions 
)

◆ blpapi_ProviderSession_resolve()

int blpapi_ProviderSession_resolve ( blpapi_ProviderSession_t session,
blpapi_ResolutionList_t resolutionList,
int  resolveMode,
const blpapi_Identity_t identity 
)

◆ blpapi_ProviderSession_resolveAsync()

int blpapi_ProviderSession_resolveAsync ( blpapi_ProviderSession_t session,
const blpapi_ResolutionList_t resolutionList,
int  resolveMode,
const blpapi_Identity_t identity 
)

◆ blpapi_ProviderSession_sendResponse()

int blpapi_ProviderSession_sendResponse ( blpapi_ProviderSession_t session,
blpapi_Event_t event,
int  isPartialResponse 
)

◆ blpapi_ProviderSession_start()

int blpapi_ProviderSession_start ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_startAsync()

int blpapi_ProviderSession_startAsync ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_stop()

int blpapi_ProviderSession_stop ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_stopAsync()

int blpapi_ProviderSession_stopAsync ( blpapi_ProviderSession_t session)

◆ blpapi_ProviderSession_terminateSubscriptionsOnTopics()

int blpapi_ProviderSession_terminateSubscriptionsOnTopics ( blpapi_ProviderSession_t session,
const blpapi_Topic_t **  topics,
size_t  numTopics,
const char *  message 
)

◆ blpapi_ProviderSession_tryNextEvent()

int blpapi_ProviderSession_tryNextEvent ( blpapi_ProviderSession_t session,
blpapi_Event_t **  eventPointer 
)

◆ blpapi_ServiceRegistrationOptions_addActiveSubServiceCodeRange()

int blpapi_ServiceRegistrationOptions_addActiveSubServiceCodeRange ( blpapi_ServiceRegistrationOptions_t parameters,
int  start,
int  end,
int  priority 
)

◆ blpapi_ServiceRegistrationOptions_copy()

void blpapi_ServiceRegistrationOptions_copy ( blpapi_ServiceRegistrationOptions_t lhs,
const blpapi_ServiceRegistrationOptions_t rhs 
)

◆ blpapi_ServiceRegistrationOptions_create()

blpapi_ServiceRegistrationOptions_t* blpapi_ServiceRegistrationOptions_create ( void  )

◆ blpapi_ServiceRegistrationOptions_destroy()

void blpapi_ServiceRegistrationOptions_destroy ( blpapi_ServiceRegistrationOptions_t parameters)

◆ blpapi_ServiceRegistrationOptions_duplicate()

blpapi_ServiceRegistrationOptions_t* blpapi_ServiceRegistrationOptions_duplicate ( const blpapi_ServiceRegistrationOptions_t parameters)

◆ blpapi_ServiceRegistrationOptions_getGroupId()

int blpapi_ServiceRegistrationOptions_getGroupId ( blpapi_ServiceRegistrationOptions_t parameters,
char *  groupdIdBuffer,
int *  groupIdLength 
)

◆ blpapi_ServiceRegistrationOptions_getPartsToRegister()

int blpapi_ServiceRegistrationOptions_getPartsToRegister ( blpapi_ServiceRegistrationOptions_t parameters)

◆ blpapi_ServiceRegistrationOptions_getServicePriority()

int blpapi_ServiceRegistrationOptions_getServicePriority ( blpapi_ServiceRegistrationOptions_t parameters)

◆ blpapi_ServiceRegistrationOptions_removeAllActiveSubServiceCodeRanges()

void blpapi_ServiceRegistrationOptions_removeAllActiveSubServiceCodeRanges ( blpapi_ServiceRegistrationOptions_t parameters)

◆ blpapi_ServiceRegistrationOptions_setGroupId()

void blpapi_ServiceRegistrationOptions_setGroupId ( blpapi_ServiceRegistrationOptions_t parameters,
const char *  groupId,
unsigned int  groupIdLength 
)

◆ blpapi_ServiceRegistrationOptions_setPartsToRegister()

void blpapi_ServiceRegistrationOptions_setPartsToRegister ( blpapi_ServiceRegistrationOptions_t parameters,
int  parts 
)

◆ blpapi_ServiceRegistrationOptions_setServicePriority()

int blpapi_ServiceRegistrationOptions_setServicePriority ( blpapi_ServiceRegistrationOptions_t parameters,
int  priority 
)