forked from quic-go/quic-go
return a quic.ConnectionState from Session.ConnectionState()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user