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 Attributes | |
String | alias |
Remote endpoint info class.
This class holds data about a remote endpoint (id and address)
MGCPEpInfo | ( | const char * | endpoint, |
const char * | host, | ||
int | port, | ||
bool | addPort = true |
||
) | [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::port().
const SocketAddr& address | ( | ) | const [inline] |
Retrieve the current address for this endpoint information
const SocketAddr& address | ( | ) |
Retrieve the address for this endpoint information, resolve name if needed
void address | ( | const SocketAddr & | addr | ) | [inline] |
Set a new socket address in the endpoint info
addr | New address and port to set in the endpoint |