public static interface DOFConnection.PeerListener
DOFConnection.Type.HUB
/DOFConnection.Type.POINT
network. Only peer joining is supported for
DOFConnection.Type.GROUP
networks.Modifier and Type | Method and Description |
---|---|
void |
peerAdded(DOFConnection connection,
DOFAddress address,
DOFSecurityScope scope)
This is called when a
DOFConnection.Type.POINT or DOFConnection.Type.GROUP member joins the secure group. |
void |
peerRemoved(DOFConnection connection,
DOFAddress address)
This is called when a
DOFConnection.Type.POINT leaves the secure group. |
void |
removed(DOFConnection connection,
DOFException exception)
This is called when this listener is removed from the DOFConnection.
|
void peerAdded(DOFConnection connection, DOFAddress address, DOFSecurityScope scope)
DOFConnection.Type.POINT
or DOFConnection.Type.GROUP
member joins the secure group.connection
- This is the DOFConnection.Type.HUB
or GROUP connection that this listener was added on.address
- The address of the joining node.scope
- The security scope of the joining node.void peerRemoved(DOFConnection connection, DOFAddress address)
DOFConnection.Type.POINT
leaves the secure group. DOFConnection.Type.GROUP
managers cannot
detect this, so in that case, this method will never be called.connection
- This is the DOFConnection.Type.HUB
connection that this listener was added on.address
- The address of the leaving node.void removed(DOFConnection connection, DOFException exception)
connection
- The connection this listener was added on.exception
- The exception that caused this listener to be removed, null means it was removed normally.