TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
A combination of IP v4 address and network mask. More...
#include <tsIPv4AddressMask.h>
Public Member Functions | |
IPv4AddressMask (const IPv4Address &a=IPv4Address(), const IPv4Address &m=IPv4Address()) | |
Default constructor. | |
IPv4Address | broadcastAddress () const |
Get the associated broadcast address. | |
int | maskSize () const |
Get the network mask size in bits. | |
virtual UString | toString () const override |
Convert to a string object. | |
Public Attributes | |
IPv4Address | address {} |
IPv4 address. | |
IPv4Address | mask {} |
Network mask. | |
A combination of IP v4 address and network mask.
ts::IPv4AddressMask::IPv4AddressMask | ( | const IPv4Address & | a = IPv4Address() , |
const IPv4Address & | m = IPv4Address() |
||
) |
Default constructor.
[in] | a | IPv4 address. |
[in] | m | Network mask. |
int ts::IPv4AddressMask::maskSize | ( | ) | const |
Get the network mask size in bits.
IPv4Address ts::IPv4AddressMask::broadcastAddress | ( | ) | const |
Get the associated broadcast address.
|
overridevirtual |
Convert to a string object.
Implements ts::StringifyInterface.