Package io.github.mahmoudimus.quic
Interface QuicServer.DatagramSink
- Enclosing class:
QuicServer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Where an unbound server's datagrams go: the transport it runs over
instead of a socket.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend(ByteBuffer datagram, InetSocketAddress to) Called for each datagram the server sends, from its connections' threads (several at once) and from threads that hand it datagrams (its answers, such as Version Negotiation): it should not block for long.
-
Method Details
-
send
Called for each datagram the server sends, from its connections' threads (several at once) and from threads that hand it datagrams (its answers, such as Version Negotiation): it should not block for long.- Parameters:
datagram- the datagram, between its position and limit; the sink may keep itto- the receiver
-