blob: 098e3a691c95b8b059281da39cfe78c787b13e54 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GARNET_EXAMPLES_FIDL_ECHO2_SERVER_CPP_ECHO_SERVER_APP_H_
#define GARNET_EXAMPLES_FIDL_ECHO2_SERVER_CPP_ECHO_SERVER_APP_H_
#include <fidl/examples/echo/cpp/fidl.h>
#include "lib/app/cpp/startup_context.h"
namespace echo2 {
class EchoServerApp : public fidl::examples::echo::Echo {
public:
EchoServerApp();
virtual void EchoString(fidl::StringPtr value, EchoStringCallback callback);
protected:
EchoServerApp(std::unique_ptr<fuchsia::sys::StartupContext> context);
private:
EchoServerApp(const EchoServerApp&) = delete;
EchoServerApp& operator=(const EchoServerApp&) = delete;
std::unique_ptr<fuchsia::sys::StartupContext> context_;
fidl::BindingSet<Echo> bindings_;
};
} // namespace echo2
#endif // GARNET_EXAMPLES_FIDL_ECHO2_SERVER_CPP_ECHO_SERVER_APP_H_