/* Wrapper for tls.Listen
 * Returns custom Listener that will perform steps to send the AR right after connection establishment
 */
Wrapper for tls.Listen
Returns custom Listener that will perform steps to send the AR right after connection establishment
/ * Wrapper for tls . Listen * Returns custom Listener that will perform steps to send the AR right after connection establishment * /
func Listen(network, laddr string, config *tls.Config) (net.Listener, error){
	var listener Listener
	ln, err := tls.Listen(network, laddr, config)
	if err != nil {
		log.Error(err)
		return listener, errors.New("[Listener] Failed")
	}
	listener = Listener{ln}
	return net.Listener(listener) , nil
}
func Listen ( network , laddr string , config * tls . Config ) ( net . Listener , error ) { var listener Listener ln , err := tls . Listen ( network , laddr , config ) if err != nil { log . Error ( err ) return listener , errors . New ( " " ) } listener = Listener { ln } return net . Listener ( listener ) , nil }
Wrapper for tls.Listen
Returns custom Listener that will perform steps to send the AR right after connection establishment
Wrapper for tls . Listen Returns custom Listener that will perform steps to send the AR right after connection establishment