18 #ifndef _DECAF_NET_INETADDRESS_H_ 19 #define _DECAF_NET_INETADDRESS_H_ 36 static const unsigned char loopbackBytes[4];
37 static const unsigned char anyBytes[4];
48 InetAddress(
const unsigned char* ipAddress,
int numBytes);
49 InetAddress(
const std::string& hostname,
const unsigned char* ipAddress,
int numBytes);
68 virtual std::string getHostAddress()
const;
80 virtual std::string getHostName()
const;
89 virtual std::string toString()
const;
204 static InetAddress getByAddress(
const unsigned char* bytes,
int numBytes);
217 static InetAddress getByAddress(
const std::string& hostname,
const unsigned char* bytes,
int numBytes);
242 static unsigned int bytesToInt(
const unsigned char* bytes,
int start);
virtual bool isSiteLocalAddress() const
Check if this InetAddress is a valid site local address.
Definition: InetAddress.h:143
virtual bool isMCGlobal() const
Check if this InetAddress is Multicast and has Global scope.
Definition: InetAddress.h:152
virtual bool isMCSiteLocal() const
Check if this InetAddress is Multicast and has Site Local scope.
Definition: InetAddress.h:179
virtual bool isMCOrgLocal() const
Check if this InetAddress is Multicast and has Organization scope.
Definition: InetAddress.h:188
std::string hostname
Definition: InetAddress.h:41
virtual bool isAnyLocalAddress() const
Check if this InetAddress is a valid wildcard address.
Definition: InetAddress.h:107
Represents an IP address.
Definition: InetAddress.h:33
virtual bool isLoopbackAddress() const
Check if this InetAddress is a valid loopback address.
Definition: InetAddress.h:116
virtual bool isMCLinkLocal() const
Check if this InetAddress is Multicast and has Link Local scope.
Definition: InetAddress.h:170
#define DECAF_API
Definition: Config.h:29
virtual bool isMCNodeLocal() const
Check if this InetAddress is Multicast and has Node Local scope.
Definition: InetAddress.h:161
virtual bool isMulticastAddress() const
Check if this InetAddress is a valid Multicast address.
Definition: InetAddress.h:125
decaf::lang::ArrayPointer< unsigned char > addressBytes
Definition: InetAddress.h:43
bool reached
Definition: InetAddress.h:42
virtual bool isLinkLocalAddress() const
Check if this InetAddress is a valid link local address.
Definition: InetAddress.h:134
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25