Connectivity state change event

Description

It would be nice to have connectivity state change event to be able to reconnect if needed. This is for all of processing models.

I've been testing today the code and had 2 silent disconnects (only seen in logs). But since I use coro mode and non-reliable connection, I skipped that event. For me it is important to catch such kind of events, and probably reconnect the fix8 code or just print a message that diconnection/connection happened.

PS. I thought I've opened such a suggestion, but didn't fins it in the list

Environment

Ubuntu x64 gcc 4.7

Activity

Show:
Sergey Sedreev
January 9, 2014, 8:59 AM

Virtual method or assignable std::function<> member would work.

David Dight
January 9, 2014, 10:49 AM

Well a callback or std::function (c++11) might be more flexible but the virtual method is probably more formal and consistent with the rest of the API.
I think something like this:

David Dight
March 23, 2014, 12:14 AM

Updated myfix.cpp and harness.cpp to spit out before/after messages when session states change as an example of overriding and intercepting these events.

David Dight
March 24, 2014, 1:49 AM

Over-ridable state_change method is called before state change. Will consider making optional to call this method after state change.

David Dight
April 7, 2014, 12:14 AM

version 1.1.0 released

Assignee

David Dight

Reporter

Sergey Sedreev

Labels

None

Branch

dev

Products

None

Fix versions

Affects versions

Priority

Major
Configure