// Serve starts a secure echo server on the given listener.
Serve starts a secure echo server on the given listener.
// Serve starts a secure echo server on the given listener .
func Serve(l net.Listener) error {
	defer l.Close()
	kp, err := generateKeyPair()
	if err != nil {
		return err
	}
	for {
		conn, e := l.Accept()
		if e != nil {
			return e
		}
		serve(conn, kp)
	}
}
func Serve ( l net . Listener ) error { defer l . Close ( ) kp , err := generateKeyPair ( ) if err != nil { return err } for { conn , e := l . Accept ( ) if e != nil { return e } serve ( conn , kp ) } }
Serve starts a secure echo server on the given listener.
Serve starts a secure echo server on the given listener .
// Should we use a KeyPair per client?