Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by yajnasteju · Jun 02, 2017 at 04:40 AM · ema c++ADS

EMA CPP - Elecktron SDK - Callback for disconnection

Hi,

In OmmConsumerClient , what is the callback under which disconnection from ADS can be identified.

In onStatusMsg , onUpdateMsg , onRefreshMsg , this event is not captured.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by warat.boonyanit · Jun 02, 2017 at 06:08 AM

Hi @yajnasteju

EMA internally handles connection events, but doesn't forward them to the client application.

However, you can indirectly monitor connection activities through the login stream.

UInt64 loginHandle = consumer.registerClient( ReqMsg().domainType( MMT_LOGIN ).name( "user" ), client, closure );

Application will receive channel down status (via onStatusMsg) from login stream when there is a disconnection.

Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
yajnasteju · Jun 05, 2017 at 02:25 AM 0
Share

I have logged each message under status message , but Disconnection to ADS is not logged , but , few messages such as - 'Service to the item was lost ' are logged for individual ric codes.

avatar image
REFINITIV
warat.boonyanit ♦♦ yajnasteju · Jun 12, 2017 at 06:44 AM 0
Share
@yajnasteju

Have you registered for login stream yet?

If you do, then there should be channel down events when there is a disconnection.

StatusMsg
    streamId="1"
    domain="Login Domain"
    ClearCache
    state="Open / Suspect / None / 'channel down'"
    name="u0160375"
    nameType="1"
StatusMsgEnd


StatusMsg
    streamId="1"
    domain="Login Domain"
    state="Open / Suspect / None / 'Channel is down.'"
StatusMsgEnd

Note that the status is on "Login Domain". They will show up only when you register for login domain events.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

EMA Issue with update items

[EMA C++] Get Illegible contents in updateMsg of brokers

what is the effect of funtion "FieldEntry::getRippleTo"

Ema c++ library crashe on failover from ezd to cross_connect.

EMA C++ post message, value after decimal point is truncated

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges