Uses of Record Class
io.github.mahmoudimus.quic.connection.StreamId
Packages that use StreamId
Package
Description
The sans-I/O QUIC connection and endpoint, ported from quinn-proto: the
Connection state machine (handshake, packet assembly and
processing, key updates, closing and draining), the Endpoint that routes datagrams and answers with Version
Negotiation, Retry and stateless resets, their configurations (TransportConfig, ServerConfig, ClientConfig, EndpointConfig), and the building blocks they are made of:
range sets (RangeSet), reassembly of received data
(Assembler), buffering of sent data (SendBuffer), streams and flow control (StreamsState), packet number spaces and ACK generation
(PacketSpace), loss detection (Recovery), pacing (Pacer), path MTU discovery (MtuDiscovery) and timers (TimerTable).-
Uses of StreamId in io.github.mahmoudimus.quic.connection
Fields in io.github.mahmoudimus.quic.connection with type parameters of type StreamIdModifier and TypeFieldDescriptionRetransmits.maxStreamDataStreams that need a MAX_STREAM_DATA.Retransmits.streamDataBlockedStreams that need a STREAM_DATA_BLOCKED.Methods in io.github.mahmoudimus.quic.connection that return StreamIdModifier and TypeMethodDescriptionAccepts a stream the peer opened.Connection.acceptStream(Dir dir) Accepts a stream the peer opened.Retransmits.PendingReset.id()Returns the value of theidrecord component.StreamEvent.Finished.id()Returns the value of theidrecord component.StreamEvent.Readable.id()Returns the value of theidrecord component.StreamEvent.Stopped.id()Returns the value of theidrecord component.StreamEvent.Writable.id()Returns the value of theidrecord component.StreamMeta.id()Returns the value of theidrecord component.static StreamIdThe stream ID of a stream type and index.Opens a local stream.Connection.openStream(Dir dir) Opens a stream.Methods in io.github.mahmoudimus.quic.connection with parameters of type StreamIdModifier and TypeMethodDescriptionbooleanStreamsState.canSendFlowControl(StreamId id) Whether a MAX_STREAM_DATA for a stream would still be useful.intvoidFinishes a stream's sending side: a FIN follows the data written.voidFinishes a stream: no more data will be written, and a FIN is queued.booleanStreamsState.isLocalUnopened(StreamId id) Whether a local stream has never been opened.intA stream's priority.intConnection.read(StreamId id, ByteBuffer dst) Reads stream data in order.StreamsState.read(StreamId id, boolean ordered, Retransmits retransmits) Starts reading a stream.booleanConnection.receivedEarlyData(StreamId id) Server: whether a stream the client opened carried data in 0-RTT packets, which an attacker may have replayed.voidStreamsState.receivedMaxStreamData(StreamId id, long offset) Processes a MAX_STREAM_DATA frame.The state of a stream's receiving side.The state of a stream's receiving part.voidConnection.releaseRead(StreamId id) Forgets a stream whose end of dataConnection.read(io.github.mahmoudimus.quic.connection.StreamId, java.nio.ByteBuffer)reported, once the application no longer reads it.voidStreamsState.reset(StreamId id, long errorCode, Retransmits retransmits) Abandons sending on a stream (RESET_STREAM).voidStreamsState.resetAcked(StreamId id) Releases a stream whose RESET_STREAM was acknowledged.voidConnection.resetStream(StreamId id, long errorCode) Abandons a stream's sending side with RESET_STREAM.The state of a stream's sending side.The state of a stream's sending part.voidConnection.setPriority(StreamId id, int priority) Sets a stream's send priority; higher goes first.voidStreamsState.setPriority(StreamId id, int priority) Sets a stream's priority; streams with a higher priority send first.voidStreamsState.stop(StreamId id, long errorCode, Retransmits retransmits) Stops receiving a stream (STOP_SENDING).longWhether the peer sent STOP_SENDING for a stream.longWhether the peer stopped a stream.voidConnection.stopSending(StreamId id, long errorCode) Asks the peer to stop sending on a stream (STOP_SENDING); unread data is discarded.longStreamsState.streamDataBlockedLimit(StreamId id) The limit to put in a STREAM_DATA_BLOCKED for a stream.longStreamsState.takeReset(StreamId id, Retransmits retransmits) Whether the peer reset a stream.intConnection.write(StreamId id, ByteBuffer data) Writes stream data, copying as much as flow control and the send window allow.intStreamsState.write(StreamId id, ByteBuffer data, Retransmits pending) Writes data, copying as much as flow control and the send window accept.StreamsState.writeChunks(StreamId id, ByteBuffer[] chunks, Retransmits pending) Writes buffers without copying them: the stream keeps views until the data is acknowledged, so their contents must not change.Constructors in io.github.mahmoudimus.quic.connection with parameters of type StreamIdModifierConstructorDescriptionCreates an instance of aFinishedrecord class.PendingReset(StreamId id, long errorCode) Creates an instance of aPendingResetrecord class.Creates an instance of aReadablerecord class.Creates an instance of aStoppedrecord class.StreamMeta(StreamId id, long start, long end, boolean fin) Creates an instance of aStreamMetarecord class.Creates an instance of aWritablerecord class.