1 // Copyright 2016 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include <stdbool.h>
8 
9 #include <zircon/types.h>
10 
11 // Waits for an incoming echo request on channel |handle|,
12 // parses the message, sends a reply on |handle|. Returns false if either
13 // channel handle is closed or any error occurs. Returns true if a reply is
14 // successfully sent.
15 bool serve_echo_request(zx_handle_t handle);
16