return a quic.ConnectionState from Session.ConnectionState()

This commit is contained in:
Marten Seemann
2019-10-06 10:28:53 +02:00
parent 021f70aac5
commit 356c69944e
7 changed files with 26 additions and 22 deletions

View File

@@ -141,8 +141,6 @@ type StreamError interface {
ErrorCode() ErrorCode
}
type ConnectionState = handshake.ConnectionState
// A Session is a QUIC connection between two peers.
type Session interface {
// AcceptStream returns the next stream opened by the peer, blocking until one is available.
@@ -264,6 +262,11 @@ type Config struct {
Tracer logging.Tracer
}
// ConnectionState records basic details about a QUIC connection
type ConnectionState struct {
TLS handshake.ConnectionState
}
// A Listener for incoming QUIC connections
type Listener interface {
// Close the server. All active sessions will be closed.