add isloopbackIPAddress to code/nel/src/net/inet_address.cpp
add IPv4&IPv6 loopback IP addresses to localAddresses
In code/nel/src/net/unified_network.cpp:
replace is127001 calls by isloopbackIPAddress
change wrong comments about default network id (nid = 0xFF)
When the selected connectionId is not valid
warnings are not triggered anymore when using default network (nid = 0xFF): the logs were full of warnings and the server was lagging
When nid = 0xFF, the new connectionId is stored into DefaultNetwork
When nid <> 0xFF, the new connectionId is stored into NetworkConnectionAssociations[nid]
--HG--
branch : develop
// there's a problem with the selected connectionID, so try to find a valid one
if(nid!=0xFF)// not a default network. There's a problem with the selected connectionID, so try to find a valid one
nlwarning("HNETL5: Can't find selected connection id %hu to send message to %s because connection is not valid or connected, find a valid connection id",(uint16)connectionId,_IdCnx[sid.get()].ServiceName.c_str());
nlwarning("HNETL5: Can't find selected connection id %hu to send message to %s because connection is not valid or connected, find a valid connection id",(uint16)connectionId,_IdCnx[sid.get()].ServiceName.c_str());
_IdCnx[sid.get()].NetworkConnectionAssociations[nid]=connectionId;// we set the preferred networkConnectionAssociation
}else{
if(nid==0xFF){
_IdCnx[sid.get()].DefaultNetwork=connectionId;
}
}
nlwarning("HNETL5: selected connection id %hu from network %hu to send message to %s",(uint16)connectionId,(uint16)nid,_IdCnx[sid.get()].ServiceName.c_str());