| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private QuicConnectionId | |
| private long | |
| private QuicConnectionId | |
| private boolean | |
| private final QuicConnectionImpl | |
| private final Logger | |
| private final NavigableSet | |
| private final boolean | |
| private volatile long | |
| private volatile long | |
| private final ReentrantLock | |
| private final String | |
| private final NavigableMap | |
| private QuicConnectionId | |
| private volatile PeerConnIdManager. | |
| private final Queue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the list of stateless reset tokens associated with active peer connection IDsReturns the list of stateless reset tokens associated with active peer connection IDs. |
| public void | |
| pack-priv void | finalizeHandshakePeerConnId(final InitialPacket
the INITIAL packet from the peer initialPacket)The peer in its INITIAL packet would have sent a connection id representing itself. |
| pack-priv QuicConnectionId | |
| private QuicConnectionId | |
| pack-priv void | handleNewConnectionIdFrame(final NewConnectionIDFrame
the NEW_CONNECTION_ID frame newCid)Process the incoming NEW_CONNECTION_ID frame. |
| pack-priv void | handlePreferredAddress(final ByteBuffer
preferred connection ID preferredConnId, final byte[] preferred stateless reset token preferredStatelessResetToken)Save the connection ID from the preferred address QUIC transport parameter |
| pack-priv void | handshakeStatelessResetToken(final byte[]
stateless reset token statelessResetToken)Save the stateless reset token QUIC transport parameter |
| private void | |
| public QuicFrame | Returns: a RetireConnectionIdFrame, or null if none is queued or remaining is too lowbytes remaining in the packet remaining)Produce a queued RETIRE_CONNECTION_ID frame, if it fits in the packet |
| pack-priv void | originalServerConnId(final QuicConnectionId
the client-selected original server connection ID peerConnId)Save the client-selected original server connection ID |
| pack-priv QuicConnectionId | Returns: the client-selected original server connection IDReturns the client-selected original server connection ID. |
| private void | |
| pack-priv void | retryConnId(final QuicConnectionId
the server-selected retry connection ID peerConnId)Save the server-selected retry connection ID |
| pack-priv QuicConnectionId | Returns: the connection id sent in the server's retry packetReturns the connectionId the server included in the Source Connection ID field of a Retry packet. |
| private void |
| activeConnId | back to summary |
|---|---|
| private QuicConnectionId activeConnId | |
| activeConnIdSeq | back to summary |
|---|---|
| private long activeConnIdSeq | |
| clientSelectedDestConnId | back to summary |
|---|---|
| private QuicConnectionId clientSelectedDestConnId | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| connection | back to summary |
|---|---|
| private final QuicConnectionImpl connection | |
| debug | back to summary |
|---|---|
| private final Logger debug | |
| gaps | back to summary |
|---|---|
| private final NavigableSet<Long> gaps | |
| isClient | back to summary |
|---|---|
| private final boolean isClient | |
| largestReceivedRetirePriorTo | back to summary |
|---|---|
| private volatile long largestReceivedRetirePriorTo | |
| largestReceivedSequenceNumber | back to summary |
|---|---|
| private volatile long largestReceivedSequenceNumber | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| logTag | back to summary |
|---|---|
| private final String logTag | |
| peerConnectionIds | back to summary |
|---|---|
| private final NavigableMap<Long, PeerConnectionId> peerConnectionIds | |
| peerDecidedRetryConnId | back to summary |
|---|---|
| private QuicConnectionId peerDecidedRetryConnId | |
| state | back to summary |
|---|---|
| private volatile PeerConnIdManager. | |
| toRetire | back to summary |
|---|---|
| private final Queue<Long> toRetire | |
| PeerConnIdManager | back to summary |
|---|---|
| pack-priv PeerConnIdManager(final QuicConnectionImpl connection, final String dbTag) | |
| activeResetTokens | back to summary |
|---|---|
| public List Returns the list of stateless reset tokens associated with active peer connection IDs.
| |
| close | back to summary |
|---|---|
| public void close() | |
| finalizeHandshakePeerConnId | back to summary |
|---|---|
| pack-priv void finalizeHandshakePeerConnId(final InitialPacket initialPacket) throws QuicTransportException The peer in its INITIAL packet would have sent a connection id representing itself. That connection id may not be the same that we might have sent in the INITIAL packet. If it isn't the same, then we switch the peer connection id, that we keep track off, to the one that the peer has chosen.
| |
| getPeerConnId | back to summary |
|---|---|
| pack-priv QuicConnectionId getPeerConnId() Returns the active peer connection ID.
| |
| getPeerConnId | back to summary |
|---|---|
| private QuicConnectionId getPeerConnId(final long sequenceNum) | |
| handleNewConnectionIdFrame | back to summary |
|---|---|
| pack-priv void handleNewConnectionIdFrame(final NewConnectionIDFrame newCid) throws QuicTransportException Process the incoming NEW_CONNECTION_ID frame.
| |
| handlePreferredAddress | back to summary |
|---|---|
| pack-priv void handlePreferredAddress(final ByteBuffer preferredConnId, final byte[] preferredStatelessResetToken) Save the connection ID from the preferred address QUIC transport parameter
| |
| handshakeStatelessResetToken | back to summary |
|---|---|
| pack-priv void handshakeStatelessResetToken(final byte[] statelessResetToken) Save the stateless reset token QUIC transport parameter
| |
| insertGaps | back to summary |
|---|---|
| private void insertGaps(long sequenceNumber) | |
| nextFrame | back to summary |
|---|---|
| public QuicFrame nextFrame(int remaining) Produce a queued RETIRE_CONNECTION_ID frame, if it fits in the packet
| |
| originalServerConnId | back to summary |
|---|---|
| pack-priv void originalServerConnId(final QuicConnectionId peerConnId) Save the client-selected original server connection ID
| |
| originalServerConnId | back to summary |
|---|---|
| pack-priv QuicConnectionId originalServerConnId() Returns the client-selected original server connection ID.
| |
| retirePriorTo | back to summary |
|---|---|
| private void retirePriorTo(final long priorTo) | |
| retryConnId | back to summary |
|---|---|
| pack-priv void retryConnId(final QuicConnectionId peerConnId) Save the server-selected retry connection ID
| |
| retryConnId | back to summary |
|---|---|
| pack-priv QuicConnectionId retryConnId() Returns the connectionId the server included in the Source Connection ID field of a Retry packet. May be null.
| |
| switchConnectionId | back to summary |
|---|---|
| private void switchConnectionId() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PeerConnIdManager. | |
| public static final PeerConnIdManager. | |
| public static final PeerConnIdManager. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PeerConnIdManager. | |
| public static PeerConnIdManager. |
| INITIAL_PKT_NOT_RECEIVED_FROM_PEER | back to summary |
|---|---|
| public static final PeerConnIdManager. | |
| PEER_CONN_ID_FINALIZED | back to summary |
|---|---|
| public static final PeerConnIdManager. | |
| RETRY_PKT_RECEIVED_FROM_PEER | back to summary |
|---|---|
| public static final PeerConnIdManager. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static PeerConnIdManager. | |
| values | back to summary |
|---|---|
| public static PeerConnIdManager. | |