forked from quic-go/quic-go
remove incorrect documentation about the listeners
Listener.Serve() was removed a very long time ago.
This commit is contained in:
@@ -59,7 +59,6 @@ type server struct {
|
||||
var _ Listener = &server{}
|
||||
|
||||
// ListenAddr creates a QUIC server listening on a given address.
|
||||
// The listener is not active until Serve() is called.
|
||||
// The tls.Config must not be nil, the quic.Config may be nil.
|
||||
func ListenAddr(addr string, tlsConf *tls.Config, config *Config) (Listener, error) {
|
||||
udpAddr, err := net.ResolveUDPAddr("udp", addr)
|
||||
@@ -74,7 +73,6 @@ func ListenAddr(addr string, tlsConf *tls.Config, config *Config) (Listener, err
|
||||
}
|
||||
|
||||
// Listen listens for QUIC connections on a given net.PacketConn.
|
||||
// The listener is not active until Serve() is called.
|
||||
// The tls.Config must not be nil, the quic.Config may be nil.
|
||||
func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener, error) {
|
||||
certChain := crypto.NewCertChain(tlsConf)
|
||||
|
||||
Reference in New Issue
Block a user