summaryrefslogtreecommitdiff
path: root/indra/llmessage/llhost.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llmessage/llhost.h')
-rwxr-xr-xindra/llmessage/llhost.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llmessage/llhost.h b/indra/llmessage/llhost.h
index 376371cffd..79cad4b123 100755
--- a/indra/llmessage/llhost.h
+++ b/indra/llmessage/llhost.h
@@ -88,7 +88,8 @@ public:
// READERS
U32 getAddress() const { return mIP; }
U32 getPort() const { return mPort; }
- BOOL isOk() const { return (mIP != INVALID_HOST_IP_ADDRESS) && (mPort != INVALID_PORT); }
+ bool isOk() const { return (mIP != INVALID_HOST_IP_ADDRESS) && (mPort != INVALID_PORT); }
+ bool isInvalid() { return (mIP == INVALID_HOST_IP_ADDRESS) || (mPort == INVALID_PORT); }
size_t hash() const { return (mIP << 16) | (mPort & 0xffff); }
std::string getString() const;
std::string getIPString() const;