Hazelcast C++ Client
Public Member Functions | Static Public Attributes | Friends | List of all members
hazelcast::client::address Class Reference

Represents an address of a client or member in the cluster. More...

#include <address.h>

Public Member Functions

 address (const std::string &hostname, int port, unsigned long scope_id)
 
 address ()
 Constructor.
 
 address (const std::string &url, int port)
 
bool operator== (const address &address) const
 
bool operator!= (const address &address) const
 
int get_port () const
 
bool is_ip_v4 () const
 
const std::string & get_host () const
 
unsigned long get_scope_id () const
 
bool operator< (const address &rhs) const
 
std::string to_string () const
 

Static Public Attributes

static constexpr int ID = 0
 

Friends

struct serialization::hz_serializer< address >
 
struct std::hash< hazelcast::client::address >
 

Detailed Description

Represents an address of a client or member in the cluster.

Member Function Documentation

◆ get_host()

const std::string & hazelcast::client::address::get_host ( ) const
Returns
host address as string

◆ get_port()

int hazelcast::client::address::get_port ( ) const
Returns
port number.

◆ is_ip_v4()

bool hazelcast::client::address::is_ip_v4 ( ) const
Returns
true if the address is ip V4 address, false otherwise.

◆ operator!=()

bool hazelcast::client::address::operator!= ( const address address) const
Parameters
addressto be compared.

◆ operator==()

bool hazelcast::client::address::operator== ( const address address) const
Parameters
addressto be compared.

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