Version 3.0 of the C Connection Reconnecting Listener (core-c-dof-connection-reconnecting-listener) has been released and is available for download here.

This release includes the following changes:

  • The reconnecting state listener was changed so that connections are added using the ReconnectingStateListener\_AddConnection. The reconnecting state listener should no longer be added to connections using DOFConnection\_AddStateListener
  • Connections can be removed from the reconnecting state listener by calling ReconnectingStateListener\_RemoveConnection
  • The reconnecting state listener will support a single connection or multiple connections in the same way
  • The callback structure was changed for all callbacks, there is now a single structure with each callback function belonging to that structure
  • Logging connection info was updated to use DOFAddress\_GetString to have a more readable address if possible
  • The package name for use with CMake find\_package was renamed from dof-reconnectingstatelistener to dof-connection-reconnecting-listener
  • The find package variable DOF\_RECONNECTING\_STATE\_LISTENER\_INCLUDE\_DIRS was renamed to DOF\_CONNECTION\_RECONNECTING\_LISTENER\_INCLUDE\_DIRS
  • The find package variable DOF\_RECONNECTING\_STATE\_LISTENER\_LIBRARIES was renamed to DOF\_CONNECTION\_RECONNECTING\_LISTENER\_LIBRARIES
  • The find package variable DOF\_RECONNECTING\_STATE\_LISTENER\_FOUND was renamed to DOF\_CONNECTION\_RECONNECTING\_LISTENER\_FOUND

The following functions were added in this release:

  • ReconnectingStateListener\_AddConnection was added
  • ReconnectingStateListener\_RemoveConnection was added

This release fixes the following issues:

  • [RECONC-5](https://issue.opendof.org/browse/RECONC-5) Build fails on Windows for reconnecting listener
  • [RECONC-7](https://issue.opendof.org/browse/RECONC-7) Static libraries don’t build correctly for Windows
  • [RECONC-8](https://issue.opendof.org/browse/RECONC-8) Using cmake’s find_package with a static library may have errors when linking
  • [RECONC-11](https://issue.opendof.org/browse/RECONC-11) Removing the reconnecting state listener before it connects may lead to a crash
  • [RECONC-12](https://issue.opendof.org/browse/RECONC-12) The variable names defined for CMake are not consistent with other components

More information can be found on this project at opendof.org.