mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
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;
|
||||
|
||||
/// 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
|
||||
static CInetAddress localHost();
|
||||
|
|
|
@ -776,7 +776,7 @@ bool CInetAddress::is127001 () const
|
|||
return (internalIPAddress () == htonl(0x7F000001));
|
||||
}
|
||||
|
||||
bool CInetAddress::isloopbackIPAddress () const
|
||||
bool CInetAddress::isLoopbackIPAddress () const
|
||||
{
|
||||
const char *sIPAddress = ipAddress().c_str();
|
||||
|
||||
|
|
|
@ -831,8 +831,9 @@ void CUnifiedNetwork::addService(const string &name, const vector<CInetAddress>
|
|||
|
||||
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++)
|
||||
{
|
||||
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++)
|
||||
{
|
||||
if (_IdCnx[sid.get()].ExtAddress[j].isloopbackIPAddress ())
|
||||
if (_IdCnx[sid.get()].ExtAddress[j].isLoopbackIPAddress ())
|
||||
return true;
|
||||
|
||||
if (_IdCnx[sid.get()].ExtAddress[j].internalIPAddress () == laddr[i].internalIPAddress ())
|
||||
|
|
Loading…
Reference in a new issue