projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more utilities for ADML-HTTP image
[anna.git]
/
source
/
comm
/
AccessPoint.cpp
diff --git
a/source/comm/AccessPoint.cpp
b/source/comm/AccessPoint.cpp
index
ef1bc8f
..
bf01579
100644
(file)
--- a/
source/comm/AccessPoint.cpp
+++ b/
source/comm/AccessPoint.cpp
@@
-19,7
+19,7
@@
using namespace std;
using namespace anna;
bool comm::AccessPoint::operator == (const comm::AccessPoint& rhs) const
using namespace anna;
bool comm::AccessPoint::operator == (const comm::AccessPoint& rhs) const
-
throw()
{
+{
if(rhs.isNull() && this->isNull())
return true;
if(rhs.isNull() && this->isNull())
return true;
@@
-33,7
+33,7
@@
throw() {
}
comm::AccessPoint& comm::AccessPoint::operator = (const INetAddress & inetAddress)
}
comm::AccessPoint& comm::AccessPoint::operator = (const INetAddress & inetAddress)
-
throw()
{
+{
if(a_path != NULL) {
delete a_path;
a_path = NULL;
if(a_path != NULL) {
delete a_path;
a_path = NULL;
@@
-44,7
+44,7
@@
throw() {
}
comm::AccessPoint& comm::AccessPoint::operator = (const std::string & path)
}
comm::AccessPoint& comm::AccessPoint::operator = (const std::string & path)
-
throw()
{
+{
if(a_path == &path)
return *this;
if(a_path == &path)
return *this;
@@
-59,7
+59,7
@@
throw() {
}
comm::AccessPoint& comm::AccessPoint::operator = (const AccessPoint & rhs)
}
comm::AccessPoint& comm::AccessPoint::operator = (const AccessPoint & rhs)
-
throw()
{
+{
if(this == &rhs)
return *this;
if(this == &rhs)
return *this;
@@
-78,7
+78,7
@@
throw() {
}
void comm::AccessPoint::translate(const comm::Socket& socket, sockaddr*& s, int& len)
}
void comm::AccessPoint::translate(const comm::Socket& socket, sockaddr*& s, int& len)
-
throw(RuntimeException
) {
+
noexcept(false
) {
switch(socket.getDomain()) {
case Socket::Domain::Inet:
switch(socket.getDomain()) {
case Socket::Domain::Inet:
@@
-123,7
+123,7
@@
throw(RuntimeException) {
}
void comm::AccessPoint::asString(std::string& msg) const
}
void comm::AccessPoint::asString(std::string& msg) const
-
throw()
{
+{
msg += "{ ";
if(a_inetAddress.isNull() == false)
msg += "{ ";
if(a_inetAddress.isNull() == false)
@@
-138,7
+138,7
@@
throw() {
}
void comm::AccessPoint::asXML(const char* name, xml::Node* parent) const
}
void comm::AccessPoint::asXML(const char* name, xml::Node* parent) const
-
throw(RuntimeException
) {
+
noexcept(false
) {
xml::Node* accessPoint = parent->createChild(name);
if(a_inetAddress.isNull() == false)
xml::Node* accessPoint = parent->createChild(name);
if(a_inetAddress.isNull() == false)
@@
-148,7
+148,7
@@
throw(RuntimeException) {
}
std::string comm::AccessPoint::serialize() const
}
std::string comm::AccessPoint::serialize() const
-
throw()
{
+{
std::string result;
if(a_inetAddress.isNull() == false)
std::string result;
if(a_inetAddress.isNull() == false)