DtlsCidManager.rotateLocalCid

DtlsConnectionId rotateLocalCid(DatagramEndpoint peer)

Rotates the local CID for a peer.

Generates a new CID and updates the lookup table. The old CID remains valid until the peer acknowledges the new one.

Parameters

peerThe peer's network address.

Returns

The new local CID, or none if CID is not enabled.