Changed: Better camel case syntax
This commit is contained in:
parent
d3c21bdd08
commit
a445afef3c
3 changed files with 6 additions and 5 deletions
|
@ -144,7 +144,7 @@ public:
|
||||||
bool is127001 () const;
|
bool is127001 () const;
|
||||||
|
|
||||||
/// Returns true if this CInetAddress is a loop back address
|
/// Returns true if this CInetAddress is a loop back address
|
||||||
bool CInetAddress::isloopbackIPAddress () const;
|
bool isLoopbackIPAddress () const;
|
||||||
|
|
||||||
/// Creates a CInetAddress object with local host address, port=0
|
/// Creates a CInetAddress object with local host address, port=0
|
||||||
static CInetAddress localHost();
|
static CInetAddress localHost();
|
||||||
|
|
|
@ -776,7 +776,7 @@ bool CInetAddress::is127001 () const
|
||||||
return (internalIPAddress () == htonl(0x7F000001));
|
return (internalIPAddress () == htonl(0x7F000001));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CInetAddress::isloopbackIPAddress () const
|
bool CInetAddress::isLoopbackIPAddress () const
|
||||||
{
|
{
|
||||||
const char *sIPAddress = ipAddress().c_str();
|
const char *sIPAddress = ipAddress().c_str();
|
||||||
|
|
||||||
|
|
|
@ -831,8 +831,9 @@ void CUnifiedNetwork::addService(const string &name, const vector<CInetAddress>
|
||||||
|
|
||||||
uint j = 0;
|
uint j = 0;
|
||||||
|
|
||||||
if (!addr[i].isloopbackIPAddress ()){ // it 's loopback ip address, it s ok
|
if (!addr[i].isLoopbackIPAddress())
|
||||||
|
{
|
||||||
|
// it's loopback ip address, it's ok
|
||||||
for (j = 0; j < laddr.size (); j++)
|
for (j = 0; j < laddr.size (); j++)
|
||||||
{
|
{
|
||||||
if (laddr[j].internalNetAddress () == addr[i].internalNetAddress ())
|
if (laddr[j].internalNetAddress () == addr[i].internalNetAddress ())
|
||||||
|
@ -1789,7 +1790,7 @@ bool CUnifiedNetwork::isServiceLocal (TServiceId sid)
|
||||||
{
|
{
|
||||||
for (uint j = 0; j < _IdCnx[sid.get()].ExtAddress.size(); j++)
|
for (uint j = 0; j < _IdCnx[sid.get()].ExtAddress.size(); j++)
|
||||||
{
|
{
|
||||||
if (_IdCnx[sid.get()].ExtAddress[j].isloopbackIPAddress ())
|
if (_IdCnx[sid.get()].ExtAddress[j].isLoopbackIPAddress ())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (_IdCnx[sid.get()].ExtAddress[j].internalIPAddress () == laddr[i].internalIPAddress ())
|
if (_IdCnx[sid.get()].ExtAddress[j].internalIPAddress () == laddr[i].internalIPAddress ())
|
||||||
|
|
Loading…
Reference in a new issue