|
Yate
|
Remote endpoint info class. More...
#include <yatemgcp.h>
Public Member Functions | |
| MGCPEpInfo (const char *endpoint, const char *host, int port, bool addPort=true) | |
| virtual const String & | toString () const |
| const SocketAddr & | address () const |
| const SocketAddr & | address () |
| void | address (const SocketAddr &addr) |
Public Member Functions inherited from MGCPEndpointId | |
| MGCPEndpointId () | |
| MGCPEndpointId (const String &src) | |
| MGCPEndpointId (const MGCPEndpointId &value) | |
| MGCPEndpointId (const char *endpoint, const char *host, int port, bool addPort=true) | |
| const String & | id () const |
| const String & | user () const |
| const String & | host () const |
| int | port () const |
| void | port (int newPort, bool addPort=true) |
| void | set (const char *endpoint, const char *host, int port, bool addPort=true) |
| void | set (const String &src) |
| bool | valid () const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Attributes | |
| String | alias |
Additional Inherited Members | |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Remote endpoint info class.
This class holds data about a remote endpoint (id and address)
|
inline |
Constructor. Construct this endpoint info
| endpoint | The endpoint part of the endpoint's id |
| host | The IP address of this endpoint |
| port | The port used to send data to this endpoint |
| addPort | Add :port at end of id only if port is not zero |
References MGCPEndpointId::host(), MGCPEndpointId::MGCPEndpointId(), and MGCPEndpointId::port().
| const SocketAddr & address | ( | ) |
Retrieve the address for this endpoint information, resolve name if needed
|
inline |
Retrieve the current address for this endpoint information
|
inline |
Set a new socket address in the endpoint info
| addr | New address and port to set in the endpoint |
|
inlinevirtual |
Get a string representation of this object
Reimplemented from GenObject.
References MGCPEndpointId::id().
| String alias |
An alias name of the remote endpoint, may be empty