0.9.8.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
home
doug
src
hypertable
src
cc
AsyncComm
CommAddress.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007-2015 Hypertable, Inc.
3
*
4
* This file is part of Hypertable.
5
*
6
* Hypertable is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; version 3
9
* of the License.
10
*
11
* Hypertable is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301, USA.
20
*/
21
28
#include "
Common/Compat.h
"
29
30
#include "
CommAddress.h
"
31
32
using namespace
Hypertable
;
33
34
String
CommAddress::to_str
()
const
{
35
if
(
m_type
==
PROXY
)
36
return
proxy
;
37
else
if
(
m_type
==
INET
)
38
return
InetAddr::format
(
inet
);
39
return
"[NULL]"
;
40
}
Hypertable::CommAddress::proxy
String proxy
Proxy name.
Definition:
CommAddress.h:175
Hypertable::String
std::string String
A String is simply a typedef to std::string.
Definition:
String.h:44
Hypertable::CommAddress::PROXY
Proxy name type.
Definition:
CommAddress.h:59
Hypertable::CommAddress::INET
IPv4:port address type.
Definition:
CommAddress.h:60
CommAddress.h
Declarations for CommAddress.
Compat.h
Compatibility Macros for C/C++.
Hypertable::CommAddress::to_str
String to_str() const
Returns string representation of address.
Definition:
CommAddress.cc:34
Hypertable::InetAddr::format
String format(int sep= ':') const
Returns a string with a dotted notation ("127.0.0.1:8080") including the port.
Definition:
InetAddr.h:132
Hypertable
Hypertable definitions
Definition:
ApplicationHandler.h:36
Hypertable::CommAddress::inet
InetAddr inet
IPv4:port address.
Definition:
CommAddress.h:176
Hypertable::CommAddress::m_type
int32_t m_type
Address type.
Definition:
CommAddress.h:179
Generated on Tue Dec 22 2015 18:43:06 for Hypertable by
1.8.8