mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02:00
type squishes in Agent socket match
This commit is contained in:
parent
1a69364e8e
commit
3c51f9cac7
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ bool Agent::operator==(const Agent& otherAgent) {
|
||||||
return matches(otherAgent._publicSocket, otherAgent._localSocket, otherAgent._type);
|
return matches(otherAgent._publicSocket, otherAgent._localSocket, otherAgent._type);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Agent::matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, char otherAgentType) {
|
bool Agent::matches(sockaddr* otherPublicSocket, sockaddr* otherLocalSocket, char otherAgentType) {
|
||||||
// checks if two agent objects are the same agent (same type + local + public address)
|
// checks if two agent objects are the same agent (same type + local + public address)
|
||||||
return _type == otherAgentType
|
return _type == otherAgentType
|
||||||
&& socketMatch(_publicSocket, otherPublicSocket)
|
&& socketMatch(_publicSocket, otherPublicSocket)
|
||||||
|
|
Loading…
Reference in a new issue