Connection State Change Events
The connection state change event is caused on a primary when a secondary connects or disconnects. It is caused on a secondary when the connection to its primary is established or lost. The eventType is defined by the
On a primary, the userInfo parameter contains the name of the secondary whose connection state changed. The application can then use that name to obtain a secondary proxy and therefore the current connection state.
On a secondary, the userInfo parameter contains the value of 'connection state' enumerated by the following
-
SDS_Disconnected (1)
-
SDS_Connected (2)
-
SDS_Connecting (3)
-
SDS_ConnectionFailed (4)
-
SDS_ConnectionStateUndefined (0)