EpcTools
An event based multi-threaded C++ development framework.
|
Represents a Diameter peer. More...
#include <efd.h>
Public Member Functions | |
FDPeer () | |
Class constructor. More... | |
FDPeer (DiamId_t diamid, uint16_t port=3868) | |
Class constructor. More... | |
FDPeer (const std::string &diamid, uint16_t port=3868) | |
Class constructor. More... | |
const std::string & | getDiameterId () |
Retrieves the Diameter ID of the peer. More... | |
FDPeer & | setDiameterId (DiamId_t diamid) |
Assigns the Diameter ID for this peer object. More... | |
uint16_t | getPort () |
Retrieves the IP port for this peer. More... | |
FDPeer & | setPort (uint16_t v) |
Assigns the IP port for this peer. More... | |
const EString & | getDestinationHost () const |
Retrieves the distination host for this peer. More... | |
const EString & | getDestinationRealm () const |
Retrieves the distination realm for this peer. More... | |
const EString & | setDestinationIp (const char *ip) |
Assigns the peer's IP address. More... | |
const EString & | setDestinationIp (const std::string &ip) |
Assigns the peer's IP address. More... | |
const EString & | getDestinationIp () const |
Retrieves the peer's IP address. More... | |
FDPeerState | getState () |
Retrieves the peer connection state. More... | |
Bool | isOpen () |
Indicates if the connection to the peer is open. More... | |
Void | add () |
Adds the peer to freeDiameter. More... | |
Represents a Diameter peer.
FDPeer::FDPeer | ( | ) |
Class constructor.
FDPeer::FDPeer | ( | DiamId_t | diamid, |
uint16_t | port = 3868 |
||
) |
Class constructor.
diamid | the Diameter ID of the peer. |
port | the IP port of the peer. |
FDPeer::FDPeer | ( | const std::string & | diamid, |
uint16_t | port = 3868 |
||
) |
Class constructor.
diamid | the Diameter ID of the peer. |
port | the IP port of the peer. |
Void FDPeer::add | ( | ) |
Adds the peer to freeDiameter.
|
inline |
Retrieves the distination host for this peer.
|
inline |
Retrieves the peer's IP address.
|
inline |
Retrieves the distination realm for this peer.
|
inline |
Retrieves the Diameter ID of the peer.
|
inline |
Retrieves the IP port for this peer.
FDPeerState FDPeer::getState | ( | ) |
Retrieves the peer connection state.
|
inline |
Indicates if the connection to the peer is open.
|
inline |
Assigns the peer's IP address.
ip | the peer IP address. |
|
inline |
Assigns the peer's IP address.
ip | the peer IP address. |
|
inline |
Assigns the Diameter ID for this peer object.
diamid | the Diameter ID of the peer. |
|
inline |
Assigns the IP port for this peer.
v | the new IP Port value to assign. |