OpenDOF Project
boolean DOFConnection_AddPeerListener ( DOFConnection  self,
DOFConnectionPeerListener  listener 
)

Add a connection peer listener to this DOFConnection.

A listener must be unique among this connection's set of peer listeners to be added successfully. Only connections of type DOFCONNECTIONTYPE_HUB can have a peer listener; attempts to add a peer listener to other types of connections will fail.

Parameters
selfThe Connection. This must not be NULL.
listenerThe listener to be called whenever the connection state changes. This must not be NULL.
Return values
TRUEif listener was successfully added to the connection.
Exceptions
FALSEif the listener could not be added to the connection, either because of an illegal argument, because the listener is already added to the connection, or because the connection is of the wrong type.
See Also
DOFConnection_RemovePeerListener
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22