#include <transports.h>
Inherits PArray< OpalTransportAddress >.
|
bool | AddInterfaces (const PIPAddress &network, const PIPAddress &mask, const PString &portStr) |
|
OpalTransportAddressArray::OpalTransportAddressArray |
( |
PINDEX |
initialSize = 0 | ) |
|
|
inline |
OpalTransportAddressArray::OpalTransportAddressArray |
( |
const PString & |
address | ) |
|
|
inline |
OpalTransportAddressArray::OpalTransportAddressArray |
( |
const PCollection & |
coll | ) |
|
|
inline |
bool OpalTransportAddressArray::AddInterfaces |
( |
const PIPAddress & |
network, |
|
|
const PIPAddress & |
mask, |
|
|
const PString & |
portStr |
|
) |
| |
|
protected |
bool OpalTransportAddressArray::AppendAddress |
( |
const OpalTransportAddress & |
address, |
|
|
bool |
unique = false |
|
) |
| |
bool OpalTransportAddressArray::AppendString |
( |
const PString & |
address | ) |
|
Append a string with special cases. If address is a string containing ',', ';', tab or newline separated sub-strings, each one is added using AppendStringCollection().
This may contain wild card strings matching interfaces that are availabe in the system. For example "192.168.*" will match any interfaces starting with 192.168. The string "0.0.0.0" will match all IPv4 interfaces. The string "[::]" will map to all IPv6 interfaces. Note the loopback interface will only be included if explictly indicated.
Referenced by OpalTransportAddressArray().
bool OpalTransportAddressArray::AppendStringCollection |
( |
const PCollection & |
coll | ) |
|
Append all the strings in the collection. Note the collection must contain PString objects. See AppendString() for how each string in the collection is interpreted.
Referenced by OpalTransportAddressArray().
void OpalTransportAddressArray::GetIpAndPort |
( |
PINDEX |
index, |
|
|
PIPAddressAndPort & |
ap |
|
) |
| |
Get IP addres and port at the index, modulus the size of the array. If the ap is already valid, then it is returned as is. If the array is empty or the entry is invalid, then IPv4 INADDR_ANY and port zero is returned.
Set the array to 1 or 2 entries.
The documentation for this class was generated from the following file: