OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
xmpp_channel.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #include "xmpp/xmpp_channel.h"
6 
7 using std::string;
8 
9 namespace xmps {
10 
11 string PeerIdToName(PeerId id) {
12  switch (id) {
13  case CONFIG:
14  return "IFMap";
15  break;
16  case BGP:
17  return "BGP";
18  break;
19  case DNS:
20  return "DNS";
21  break;
22  case OTHER:
23  default:
24  return "OTHER";
25  break;
26  }
27  return "OTHER";
28 }
29 
30 }
string PeerIdToName(PeerId id)
Definition: xmpp_channel.cc:11