Interface QuicheBinding
- All Known Implementing Classes:
ForeignQuicheBinding, JnaQuicheBinding
public interface QuicheBinding
Provides different bindings, loaded via ServiceLoader, that access the native Quiche library.
-
Method Summary
Modifier and TypeMethodDescriptionconnect(QuicheConfig quicheConfig, InetSocketAddress local, InetSocketAddress peer, int connectionIdLength) byte[]fromPacket(ByteBuffer packet) booleannegotiate(Quiche.TokenMinter tokenMinter, ByteBuffer packetRead, ByteBuffer packetToSend) intpriority()tryAccept(QuicheConfig quicheConfig, Quiche.TokenValidator tokenValidator, ByteBuffer packetRead, SocketAddress local, SocketAddress peer)
-
Method Details
-
initialize
Throwable initialize() -
priority
int priority() -
fromPacket
-
connect
Quiche connect(QuicheConfig quicheConfig, InetSocketAddress local, InetSocketAddress peer, int connectionIdLength) throws IOException - Throws:
IOException
-
negotiate
boolean negotiate(Quiche.TokenMinter tokenMinter, ByteBuffer packetRead, ByteBuffer packetToSend) throws IOException - Throws:
IOException
-
tryAccept
Quiche tryAccept(QuicheConfig quicheConfig, Quiche.TokenValidator tokenValidator, ByteBuffer packetRead, SocketAddress local, SocketAddress peer) throws IOException - Throws:
IOException
-