transport.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
1// Copyright (c) 2012 The Chromium 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#include "remoting/protocol/transport.h" 6 7#include "base/logging.h" 8 9namespace remoting { 10namespace protocol { 11 12// static 13std::string TransportRoute::GetTypeString(RouteType type) { 14 switch (type) { 15 case DIRECT: 16 return "direct"; 17 case STUN: 18 return "stun"; 19 case RELAY: 20 return "relay"; 21 } 22 NOTREACHED(); 23 return ""; 24} 25 26TransportRoute::TransportRoute() : type(DIRECT) { 27} 28 29TransportRoute::~TransportRoute() { 30} 31 32} // namespace protocol 33} // namespace remoting 34