activemq-cpp-3.6.0
decaf::net::Inet4Address Class Reference

#include <src/main/decaf/net/Inet4Address.h>

Inheritance diagram for decaf::net::Inet4Address:

Public Member Functions

virtual ~Inet4Address ()
virtual InetAddressclone () const
 Returns a newly allocated copy of this InetAddress.
virtual bool isAnyLocalAddress () const
 Check if this InetAddress is a valid wildcard address.
virtual bool isLoopbackAddress () const
 Check if this InetAddress is a valid loopback address.
virtual bool isMulticastAddress () const
 Check if this InetAddress is a valid Multicast address.
virtual bool isLinkLocalAddress () const
 Check if this InetAddress is a valid link local address.
virtual bool isSiteLocalAddress () const
 Check if this InetAddress is a valid site local address.
virtual bool isMCGlobal () const
 Check if this InetAddress is Multicast and has Global scope.
virtual bool isMCNodeLocal () const
 Check if this InetAddress is Multicast and has Node Local scope.
virtual bool isMCLinkLocal () const
 Check if this InetAddress is Multicast and has Link Local scope.
virtual bool isMCSiteLocal () const
 Check if this InetAddress is Multicast and has Site Local scope.
virtual bool isMCOrgLocal () const
 Check if this InetAddress is Multicast and has Organization scope.
- Public Member Functions inherited from decaf::net::InetAddress
virtual ~InetAddress ()
virtual
decaf::lang::ArrayPointer
< unsigned char > 
getAddress () const
 Returns the Raw IP address in Network byte order.
virtual std::string getHostAddress () const
 Returns a textual representation of the IP Address.
virtual std::string getHostName () const
 Get the host name associated with this InetAddress instance.
virtual std::string toString () const
 Returns a string representation of the InetAddress in the form 'hostname / ipaddress'.

Protected Member Functions

 Inet4Address ()
 Inet4Address (const unsigned char *ipAddress, int numBytes)
 Inet4Address (const std::string &hostname, const unsigned char *ipAddress, int numBytes)
- Protected Member Functions inherited from decaf::net::InetAddress
 InetAddress ()
 InetAddress (const unsigned char *ipAddress, int numBytes)
 InetAddress (const std::string &hostname, const unsigned char *ipAddress, int numBytes)

Friends

class InetAddress

Additional Inherited Members

- Static Public Member Functions inherited from decaf::net::InetAddress
static InetAddress getByAddress (const unsigned char *bytes, int numBytes)
 Given a raw IP Address in byte array form, create and return a new InetAddress instance.
static InetAddress getByAddress (const std::string &hostname, const unsigned char *bytes, int numBytes)
 Given a host name and IPAddress return a new InetAddress.
static InetAddress getLocalHost ()
 Gets an InetAddress that is the local host address.
- Static Protected Member Functions inherited from decaf::net::InetAddress
static unsigned int bytesToInt (const unsigned char *bytes, int start)
 Converts the bytes in an address array to an int starting from the value start treating the start value as the high order byte.
static InetAddress getAnyAddress ()
static InetAddress getLoopbackAddress ()
- Protected Attributes inherited from decaf::net::InetAddress
std::string hostname
bool reached
decaf::lang::ArrayPointer
< unsigned char > 
addressBytes
- Static Protected Attributes inherited from decaf::net::InetAddress
static const unsigned char loopbackBytes [4]
static const unsigned char anyBytes [4]

Constructor & Destructor Documentation

decaf::net::Inet4Address::Inet4Address ( )
protected
decaf::net::Inet4Address::Inet4Address ( const unsigned char *  ipAddress,
int  numBytes 
)
protected
decaf::net::Inet4Address::Inet4Address ( const std::string &  hostname,
const unsigned char *  ipAddress,
int  numBytes 
)
protected
virtual decaf::net::Inet4Address::~Inet4Address ( )
virtual

Member Function Documentation

virtual InetAddress* decaf::net::Inet4Address::clone ( ) const
virtual

Returns a newly allocated copy of this InetAddress.

The caller owns the resulting copy and must delete it.

Returns
a new InetAddress instance that is a copy of this one, caller owns.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isAnyLocalAddress ( ) const
virtual

Check if this InetAddress is a valid wildcard address.

Returns
true if the address is a wildcard address.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isLinkLocalAddress ( ) const
virtual

Check if this InetAddress is a valid link local address.

Returns
true if the address is a link local address.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isLoopbackAddress ( ) const
virtual

Check if this InetAddress is a valid loopback address.

Returns
true if the address is a loopback address.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMCGlobal ( ) const
virtual

Check if this InetAddress is Multicast and has Global scope.

Returns
true if the address is Multicast and has Global scope.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMCLinkLocal ( ) const
virtual

Check if this InetAddress is Multicast and has Link Local scope.

Returns
true if the address is Multicast and has Link Local scope.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMCNodeLocal ( ) const
virtual

Check if this InetAddress is Multicast and has Node Local scope.

Returns
true if the address is Multicast and has Node Local scope.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMCOrgLocal ( ) const
virtual

Check if this InetAddress is Multicast and has Organization scope.

Returns
true if the address is Multicast and has Organization scope.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMCSiteLocal ( ) const
virtual

Check if this InetAddress is Multicast and has Site Local scope.

Returns
true if the address is Multicast and has Site Local scope.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isMulticastAddress ( ) const
virtual

Check if this InetAddress is a valid Multicast address.

Returns
true if the address is a Multicast address.

Reimplemented from decaf::net::InetAddress.

virtual bool decaf::net::Inet4Address::isSiteLocalAddress ( ) const
virtual

Check if this InetAddress is a valid site local address.

Returns
true if the address is a site local address.

Reimplemented from decaf::net::InetAddress.

Friends And Related Function Documentation

friend class InetAddress
friend

The documentation for this class was generated from the following file: