blob: d0e7d70e34c04be903f7bb92d655b5043f06eb42 [file] [edit]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "osp/public/protocol_connection_endpoint.h"
namespace openscreen::osp {
ProtocolConnectionEndpoint::ProtocolConnectionEndpoint() = default;
ProtocolConnectionEndpoint::~ProtocolConnectionEndpoint() = default;
std::ostream& operator<<(std::ostream& os,
ProtocolConnectionEndpoint::State state) {
switch (state) {
case ProtocolConnectionEndpoint::State::kStopped:
return os << "STOPPED";
case ProtocolConnectionEndpoint::State::kRunning:
return os << "RUNNING";
case ProtocolConnectionEndpoint::State::kSuspended:
return os << "SUSPENDED";
default:
return os << "UNKNOWN";
}
}
} // namespace openscreen::osp