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
Ubuntu x64 gcc 4.7
Virtual method or assignable std::function<> member would work.
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:
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.
Over-ridable state_change method is called before state change. Will consider making optional to call this method after state change.
version 1.1.0 released