Collage  1.5.0
High-performance C++ library for developing object-oriented distributed applications.
connectionType.h
1 
2 /* Copyright (c) 2007-2016, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This file is part of Collage <https://github.com/Eyescale/Collage>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef CO_CONNECTIONTYPE_H
21 #define CO_CONNECTIONTYPE_H
22 
23 #include <lunchbox/debug.h>
24 #include <iostream>
25 
26 namespace co
27 {
30  {
31  CONNECTIONTYPE_NONE = 0,
38  CONNECTIONTYPE_MULTICAST = 0x100,
40  };
41 
43  inline std::ostream& operator << ( std::ostream& os,
44  const ConnectionType& type )
45  {
46  switch( type )
47  {
48  case CONNECTIONTYPE_TCPIP: return os << "TCPIP";
49  case CONNECTIONTYPE_PIPE: return os << "ANON_PIPE";
50  case CONNECTIONTYPE_NAMEDPIPE: return os << "PIPE";
51  case CONNECTIONTYPE_RSP: return os << "RSP";
52  case CONNECTIONTYPE_NONE: return os << "NONE";
53  case CONNECTIONTYPE_RDMA: return os << "RDMA";
54  case CONNECTIONTYPE_UDT: return os << "UDT";
55 
56  default:
57  LBASSERTINFO( false, "Not implemented" );
58  return os << "ERROR";
59  }
60  return os;
61  }
62 }
63 
64 #endif // CO_CONNECTIONTYPE_H
Infiniband RDMA CM.
pipe() based uni-directional connection
UDT connection.
Named pipe based bidirectional connection.
Object-oriented network library.
Definition: barrier.h:27
ConnectionType
The supported network protocols.
UDP-based reliable stream protocol.