| Modifier and Type | Field and Description |
|---|---|
| private final AutoLock | |
| private static final Logger | |
| private LibQuiche. | |
| private LibQuiche. | |
| private static final SecureRandom |
| Access | Constructor and Description |
|---|---|
| private |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| quicheConfig | back to summary |
|---|---|
| private LibQuiche. | |
| quicheConn | back to summary |
|---|---|
| private LibQuiche. | |
| SECURE_RANDOM | back to summary |
|---|---|
| private static final SecureRandom SECURE_RANDOM | |
| JnaQuicheConnection | back to summary |
|---|---|
| private JnaQuicheConnection(LibQuiche. | |
| buildConfig | back to summary |
|---|---|
| private static LibQuiche. | |
| close | back to summary |
|---|---|
| public boolean close(long error, String reason) Implements abstract org.
| |
| connect | back to summary |
|---|---|
| public static JnaQuicheConnection connect(QuicheConfig quicheConfig, InetSocketAddress local, InetSocketAddress peer) throws IOException Hides org. | |
| connect | back to summary |
|---|---|
| public static JnaQuicheConnection connect(QuicheConfig quicheConfig, InetSocketAddress local, InetSocketAddress peer, int connectionIdLength) throws IOException Hides org. | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements abstract org.
| |
| drainCipherBytes | back to summary |
|---|---|
| public int drainCipherBytes(ByteBuffer buffer) throws IOException Implements abstract org. Fill the given buffer with cipher text to be sent.
| |
| drainClearBytesForStream | back to summary |
|---|---|
| public int drainClearBytesForStream(long streamId, ByteBuffer buffer) throws IOException Implements abstract org.
| |
| enableQlog | back to summary |
|---|---|
| public void enableQlog(String filename, String title, String desc) throws IOException | |
| feedCipherBytes | back to summary |
|---|---|
| public int feedCipherBytes(ByteBuffer buffer, SocketAddress local, SocketAddress peer) throws IOException Implements abstract org. Doc from org. Read the buffer of cipher text coming from the network.
| |
| feedClearBytesForStream | back to summary |
|---|---|
| public int feedClearBytesForStream(long streamId, ByteBuffer buffer, boolean last) throws IOException Implements abstract org.
| |
| fromPacket | back to summary |
|---|---|
| public static byte[] fromPacket(ByteBuffer packet) | |
| getLocalCloseInfo | back to summary |
|---|---|
| public QuicheConnection. Implements abstract org.
| |
| getNegotiatedProtocol | back to summary |
|---|---|
| public String getNegotiatedProtocol() Implements abstract org.
| |
| getPeerCertificate | back to summary |
|---|---|
| public byte[] getPeerCertificate() | |
| getRemoteCloseInfo | back to summary |
|---|---|
| public QuicheConnection. Implements abstract org.
| |
| isConnectionClosed | back to summary |
|---|---|
| public boolean isConnectionClosed() Implements abstract org.
| |
| isConnectionEstablished | back to summary |
|---|---|
| public boolean isConnectionEstablished() Implements abstract org.
| |
| isConnectionInEarlyData | back to summary |
|---|---|
| public boolean isConnectionInEarlyData() | |
| isDraining | back to summary |
|---|---|
| public boolean isDraining() Implements abstract org.
| |
| isStreamFinished | back to summary |
|---|---|
| public boolean isStreamFinished(long streamId) Implements abstract org.
| |
| iterableStreamIds | back to summary |
|---|---|
| protected List Implements abstract org.
| |
| jnaBuffer | back to summary |
|---|---|
| private static ByteBuffer jnaBuffer(ByteBuffer buffer) JNA requires ByteBuffers that are either direct or backed by an array.
Read-only heap buffer are not direct and are considered not backed by an
array, so buffer.hasArray() returns false for then an JNA rejects them
by throwing IllegalStateException with the message
static void
dispatch(JNIEnv *env, void* func, jint flags, jobjectArray args,
ffi_type *return_type, void *presult)
so this method ensures the buffer fulfils JNA's conditions, or it copies
the given buffer into a new heap buffer and returns the copy, while also
keeping the limit and position of the original buffer and setting them
on the new buffer in a way comparable to the original buffer's.
| |
| maxLocalStreams | back to summary |
|---|---|
| public int maxLocalStreams() Implements abstract org.
| |
| negotiate | back to summary |
|---|---|
| public static boolean negotiate(QuicheConnection. Hides org. Fully consumes the
| |
| nextTimeout | back to summary |
|---|---|
| public long nextTimeout() Implements abstract org.
| |
| onTimeout | back to summary |
|---|---|
| public void onTimeout() Implements abstract org.
| |
| packetType | back to summary |
|---|---|
| public static byte packetType(ByteBuffer packet) | |
| packetTypeAsString | back to summary |
|---|---|
| public static String packetTypeAsString(ByteBuffer packet) | |
| resizeIfNeeded | back to summary |
|---|---|
| private static byte[] resizeIfNeeded(byte[] buffer, int length) | |
| shutdownStream | back to summary |
|---|---|
| public void shutdownStream(long streamId, boolean writeSide, long error) throws IOException Implements abstract org.
| |
| tryAccept | back to summary |
|---|---|
| public static JnaQuicheConnection tryAccept(QuicheConfig quicheConfig, QuicheConnection. Hides org. Fully consumes the
| |
| windowCapacity | back to summary |
|---|---|
| public long windowCapacity() Implements abstract org.
| |
| windowCapacity | back to summary |
|---|---|
| public long windowCapacity(long streamId) throws IOException Implements abstract org.
| |