func (srv *Server) ServeListener(l net.Listener) error {
	for {
		conn, err := l.Accept()
		if netutil.IsTemporaryError(err) {
			log.Warn("RPC accept error", "err", err)
			continue
		} else if err != nil {
			return err
		}
		log.Trace("Accepted connection", "addr", conn.RemoteAddr())
		go srv.ServeCodec(NewJSONCodec(conn), OptionMethodInvocation|OptionSubscriptions)
	}
}
// ServeListener accepts connections on l, serving JSON-RPC on them.
ServeListener accepts connections on l, serving JSON-RPC on them.
// ServeListener accepts connections on l serving JSON - RPC on them .
func (srv *Server) ServeListener(l net.Listener) error {
	for {
		conn, err := l.Accept()
		if netutil.IsTemporaryError(err) {
			log.Warn("RPC accept error", "err", err)
			continue
		} else if err != nil {
			return err
		}
		log.Trace("Accepted connection", "addr", conn.RemoteAddr())
		go srv.ServeCodec(NewJSONCodec(conn), OptionMethodInvocation|OptionSubscriptions)
	}
}
func ( srv * Server ) ServeListener ( l net . Listener ) error { for { conn , err := l . Accept ( ) if netutil . IsTemporaryError ( err ) { log . Warn ( " " , " " , err ) continue } else if err != nil { return err } log . Trace ( " " , " " , conn . RemoteAddr ( ) ) go srv . ServeCodec ( NewJSONCodec ( conn ) , OptionMethodInvocation | OptionSubscriptions ) } }
ServeListener accepts connections on l, serving JSON-RPC on them.
ServeListener accepts connections on l serving JSON - RPC on them .