Collage
1.1.2
High-performance C++ library for developing object-oriented distributed applications.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
connectionType.h
1
2
/* Copyright (c) 2007-2013, 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
{
29
enum
ConnectionType
30
{
31
CONNECTIONTYPE_NONE = 0,
32
CONNECTIONTYPE_TCPIP
,
33
CONNECTIONTYPE_SDP
,
34
CONNECTIONTYPE_PIPE
,
35
CONNECTIONTYPE_NAMEDPIPE
,
36
CONNECTIONTYPE_IB
,
37
CONNECTIONTYPE_RDMA
,
38
CONNECTIONTYPE_UDT
,
39
CONNECTIONTYPE_MULTICAST = 0x100,
40
CONNECTIONTYPE_RSP
41
};
42
44
inline
std::ostream& operator << ( std::ostream& os,
45
const
ConnectionType
& type )
46
{
47
switch
( type )
48
{
49
case
CONNECTIONTYPE_TCPIP
:
return
os <<
"TCPIP"
;
50
case
CONNECTIONTYPE_SDP
:
return
os <<
"SDP"
;
51
case
CONNECTIONTYPE_PIPE
:
return
os <<
"ANON_PIPE"
;
52
case
CONNECTIONTYPE_NAMEDPIPE
:
return
os <<
"PIPE"
;
53
case
CONNECTIONTYPE_RSP
:
return
os <<
"RSP"
;
54
case
CONNECTIONTYPE_NONE:
return
os <<
"NONE"
;
55
case
CONNECTIONTYPE_RDMA
:
return
os <<
"RDMA"
;
56
case
CONNECTIONTYPE_UDT
:
return
os <<
"UDT"
;
57
58
default
:
59
LBASSERTINFO(
false
,
"Not implemented"
);
60
return
os <<
"ERROR"
;
61
}
62
return
os;
63
}
64
}
65
66
#endif // CO_CONNECTIONTYPE_H
co::CONNECTIONTYPE_RDMA
Infiniband RDMA CM.
Definition:
connectionType.h:37
co::CONNECTIONTYPE_PIPE
pipe() based uni-directional connection
Definition:
connectionType.h:34
co::CONNECTIONTYPE_UDT
UDT connection.
Definition:
connectionType.h:38
co::CONNECTIONTYPE_NAMEDPIPE
Named pipe based bidirectional connection.
Definition:
connectionType.h:35
co::CONNECTIONTYPE_TCPIP
TCP/IP sockets.
Definition:
connectionType.h:32
co::CONNECTIONTYPE_SDP
SDP sockets (InfiniBand)
Definition:
connectionType.h:33
co::ConnectionType
ConnectionType
The supported network protocols.
Definition:
connectionType.h:29
co::CONNECTIONTYPE_RSP
UDP-based reliable stream protocol.
Definition:
connectionType.h:40
co::CONNECTIONTYPE_IB
Definition:
connectionType.h:36
install
include
co
connectionType.h
Generated on Mon Oct 6 2014 14:52:26 for Collage by
1.8.6