//Listen on network, laddr and return a listener that will handle TLS connections.
Listen on network, laddr and return a listener that will handle TLS connections.
// Listen on network laddr and return a listener that will handle TLS connections .
func Listen(network, laddr string, config *tls.Config) (net.Listener, error) {
	if config == nil || len(config.Certificates) == 0 {
		return nil, errors.New("tls.Listen: no certificates in configuration")
	}
	listener, err := net.Listen(network, laddr)
	if err != nil {
		return nil, err
	}
	return NewListener(listener, config)
}
func Listen ( network , laddr string , config * tls . Config ) ( net . Listener , error ) { if config == nil || len ( config . Certificates ) == 0 { return nil , errors . New ( " " ) } listener , err := net . Listen ( network , laddr ) if err != nil { return nil , err } return NewListener ( listener , config ) }
Listen on network, laddr and return a listener that will handle TLS connections.
Listen on network laddr and return a listener that will handle TLS connections .