chromium/chromeos/ash/services/secure_channel/connection_role.h

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_CONNECTION_ROLE_H_
#define CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_CONNECTION_ROLE_H_

#include <ostream>

namespace ash::secure_channel {

// Enumeration of roles which can be used for a connection.
enum class ConnectionRole {
  // Initiates a connection to a remote device, which must be in the listener
  // role.
  kInitiatorRole,

  // Listens for incoming connections from remote devices in the initiator role.
  kListenerRole
};

std::ostream& operator<<(std::ostream& stream, const ConnectionRole& role);

}  // namespace ash::secure_channel

#endif  // CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_CONNECTION_ROLE_H_