DtlsEngine.setOnPeerMigrated
void setOnPeerMigrated(DtlsPeerMigratedCallback callback)Sets a callback invoked when a peer's address changes (migration detected).
Only fires when Connection ID is negotiated and the peer's source address changes but the CID matches an existing connection.
Parameters
callback | Callback receiving the peer, old address, and new address. |