QUICServer returns a new TLS server side connection using QUICTransport as the underlying transport. The config cannot be nil. The config's MinVersion must be at least TLS 1.3.
(config *QUICConfig)
| 181 | // |
| 182 | // The config's MinVersion must be at least TLS 1.3. |
| 183 | func QUICServer(config *QUICConfig) *QUICConn { |
| 184 | c, _ := Server(context.Background(), nil, config.TLSConfig) |
| 185 | return newQUICConn(c, config) |
| 186 | } |
| 187 | |
| 188 | func newQUICConn(conn *Conn, config *QUICConfig) *QUICConn { |
| 189 | conn.quic = &quicState{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…