The listener interface structure used to monitor connection peers. More...
Data Fields | |
| void(* | Removed )(DOFConnectionPeerListener self, DOFConnection connection, DOFException except) |
| Callback used to let listener free any allocated memory from a removed listener. | |
| void(* | PeerAdded )(DOFConnectionPeerListener self, DOFConnection connection, DOFAddress address, DOFSecurityScope scope) |
| Callback for when a peer has joined the session represented by the Connection (for example, a node joined the secure group or hub). | |
| void(* | PeerRemoved )(DOFConnectionPeerListener self, DOFConnection connection, DOFAddress address) |
| Callback for when a peer has left the session represented by the Connection (for example, a node has disconnected from a hub). | |
The listener interface structure used to monitor connection peers.
The Connection Peer Listener interface.
All of the functions in this structure take a pointer to this structure (a DOFConnectionPeerListener) as their first argument. This structure may be placed as the first element in a larger structure that stores additional state, allowing the functions to access the additional state by casting the structure pointer to a pointer to the larger structure. If no additional state is required, this structure may be used directly.
Defined as a pointer to the DOFConnectionPeerListener_t structure. Refer to the structure for more information.