Endpoint for communication. More...
#include <routingrules.hpp>
Public Types | |
typedef unordered_map< string, string >::iterator | AttributeIterator |
Public Member Functions | |
AttributeIterator | beginAttributes () |
Return beginning of attributes. More... | |
AttributeIterator | endAttributes () |
Return end of attributes iterator. More... | |
Endpoint () | |
Constructor. More... | |
bool | equals (const Endpoint &o) const |
Compares this and passed object by all information. More... | |
bool | equalsByAddress (const Endpoint &o) const |
Compares this and passed object by address information. More... | |
bool | equalsByAddressAndReliability (const Endpoint &o) const |
Compares this and passed object by address and relialibility information. More... | |
const unordered_map< string, string > & | getAttributes () const |
Retrieve attribute references. More... | |
const string & | getBearer () const |
Getter for bearer information. More... | |
const string & | getConnectIdentifier () const |
Retrieve previously set connect identifier. More... | |
const string & | getIdentifier () const |
Retrieves then endpoint identifier. More... | |
const string & | getIP () const |
Getter for IP Address. More... | |
MessageDispatcher * | getMessageDispatcher () const |
Getter for message dispatcher. More... | |
const string & | getPort () const |
Getter for port information. More... | |
bool | getReliable () const |
Getter for reliable. More... | |
bool | getUnreliable () const |
Getter for unreliable flag. More... | |
void | setAttributes (const unordered_map< string, string > &attributes) |
Stores the attributes specific for the route. More... | |
void | setBearer (const string &bearer) |
Setter for bearer information. More... | |
void | setConnectIdentifier (const string &connectIdentifier) |
Sets the connection identifier. More... | |
void | setIdentifier (const string &identifier) |
sets the endpoint identifier More... | |
void | setIP (const string &ip) |
Setter for IP Address. More... | |
void | setMessageDispatcher (MessageDispatcher *dsp) |
Attach message dispatcher. More... | |
void | setPort (const string &port) |
Setter for port information. More... | |
void | setPort (int port) |
Setter for port information. More... | |
void | setReliable (bool reliable) |
Setter for reliable flag. More... | |
void | setUnreliable (bool unreliable=true) |
Setter for unreliable flag. More... | |
string | toString () const |
Get stringular representation of the endpoint. More... | |
bool | valid () const |
Checks is object valid. More... | |
Endpoint for communication.
typedef unordered_map<string, string>::iterator kanzi::connect::p2p::RoutingRules::Endpoint::AttributeIterator |
|
inline |
Constructor.
|
inline |
Return beginning of attributes.
|
inline |
Return end of attributes iterator.
|
inline |
Compares this and passed object by all information.
o | the object to compare to |
|
inline |
Compares this and passed object by address information.
o | object to compare to |
|
inline |
Compares this and passed object by address and relialibility information.
o | object to compare to |
|
inline |
Retrieve attribute references.
|
inline |
Getter for bearer information.
|
inline |
Retrieve previously set connect identifier.
|
inline |
Retrieves then endpoint identifier.
|
inline |
Getter for IP Address.
|
inline |
Getter for message dispatcher.
|
inline |
Getter for port information.
|
inline |
Getter for reliable.
|
inline |
Getter for unreliable flag.
|
inline |
Stores the attributes specific for the route.
attributes | the attributes |
|
inline |
Setter for bearer information.
bearer | the bearer to set |
|
inline |
Sets the connection identifier.
connectIdentifier | some identifier using which the client can reach this service with selected bearer. |
|
inline |
sets the endpoint identifier
identifier | the name of the endpoint |
|
inline |
Setter for IP Address.
For server side IP defines the interface to bind into.
ip | the ip address |
|
inline |
Attach message dispatcher.
dsp | the dispatcher to attach |
|
inline |
Setter for port information.
port | the port information to set in string format |
|
inline |
Setter for port information.
port | the port information |
|
inline |
Setter for reliable flag.
reliable | state of the endpoint |
|
inline |
Setter for unreliable flag.
unreliable | unreliability state of the endpoint |
string kanzi::connect::p2p::RoutingRules::Endpoint::toString | ( | ) | const |
Get stringular representation of the endpoint.
|
inline |
Checks is object valid.