implement receiving of DATAGRAM frames

This commit is contained in:
Marten Seemann
2019-10-06 21:48:12 +02:00
parent 791f896f80
commit 98145368cd
8 changed files with 161 additions and 41 deletions

View File

@@ -191,6 +191,9 @@ type Session interface {
// SendMessage sends a message as a datagram.
// See https://datatracker.ietf.org/doc/draft-pauly-quic-datagram/.
SendMessage([]byte) error
// ReceiveMessage gets a message received in a datagram.
// See https://datatracker.ietf.org/doc/draft-pauly-quic-datagram/.
ReceiveMessage() ([]byte, error)
}
// An EarlySession is a session that is handshaking.