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
-
self | The Connection. This must not be NULL. |
listener | The listener to be called whenever the connection state changes. This must not be NULL. |
- Return values
-
TRUE | if listener was successfully added to the connection. |
- Exceptions
-
FALSE | if 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