Equalizer
1.2.1
|
00001 00002 /* Copyright (c) 2007-2011, Stefan Eilemann <eile@equalizergraphics.com> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU Lesser General Public License version 2.1 as published 00006 * by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, but WITHOUT 00009 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00010 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00011 * details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this library; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00016 */ 00017 00018 #ifndef CO_CONNECTIONTYPE_H 00019 #define CO_CONNECTIONTYPE_H 00020 00021 #include <co/base/debug.h> 00022 #include <iostream> 00023 00024 namespace co 00025 { 00027 enum ConnectionType 00028 { 00029 CONNECTIONTYPE_NONE = 0, 00030 CONNECTIONTYPE_TCPIP, 00031 CONNECTIONTYPE_SDP, 00032 CONNECTIONTYPE_PIPE, 00033 CONNECTIONTYPE_NAMEDPIPE, 00034 CONNECTIONTYPE_IB, 00035 CONNECTIONTYPE_UDP, 00036 CONNECTIONTYPE_RDMA, 00037 CONNECTIONTYPE_MULTICAST = 0x100, 00038 CONNECTIONTYPE_MCIP = CONNECTIONTYPE_MULTICAST, 00039 CONNECTIONTYPE_PGM, 00040 CONNECTIONTYPE_RSP 00041 }; 00042 00043 inline std::ostream& operator << ( std::ostream& os, 00044 const ConnectionType& type ) 00045 { 00046 switch( type ) 00047 { 00048 case CONNECTIONTYPE_TCPIP: return os << "TCPIP"; 00049 case CONNECTIONTYPE_SDP: return os << "SDP"; 00050 case CONNECTIONTYPE_PIPE: return os << "ANON_PIPE"; 00051 case CONNECTIONTYPE_NAMEDPIPE: return os << "PIPE"; 00052 case CONNECTIONTYPE_IB: return os << "IB"; 00053 case CONNECTIONTYPE_UDP: return os << "UDP"; 00054 case CONNECTIONTYPE_MCIP: return os << "MCIP"; 00055 case CONNECTIONTYPE_PGM: return os << "PGM"; 00056 case CONNECTIONTYPE_RSP: return os << "RSP"; 00057 case CONNECTIONTYPE_NONE: return os << "NONE"; 00058 case CONNECTIONTYPE_RDMA: return os << "RDMA"; 00059 00060 default: 00061 EQASSERTINFO( false, "Not implemented" ); 00062 return os << "ERROR"; 00063 } 00064 return os; 00065 } 00066 } 00067 00068 #endif // CO_CONNECTIONTYPE_H