Represents an IPv4 IP address and port.
More...
#include <rtpipv4address.h>
|
| RTPIPv4Address (uint32_t ip=0, uint16_t port=0, bool rtcpmux=false) |
| Creates an instance with IP address ip and port number port (both are interpreted in host byte order), and possibly sets the RTCP multiplex flag (see RTPIPv4Address::UseRTCPMultiplexingOnTransmission). More...
|
|
| RTPIPv4Address (uint32_t ip, uint16_t port, uint16_t rtcpsendport) |
| Creates an instance with IP address ip and port number port (both are interpreted in host byte order), and sets a specific port to send RTCP packets to (see RTPIPv4Address::GetRTCPSendPort). More...
|
|
| RTPIPv4Address (const uint8_t ip[4], uint16_t port=0, bool rtcpmux=false) |
| Creates an instance with IP address ip and port number port (port is interpreted in host byte order) and possibly sets the RTCP multiplex flag (see RTPIPv4Address::UseRTCPMultiplexingOnTransmission). More...
|
|
| RTPIPv4Address (const uint8_t ip[4], uint16_t port, uint16_t rtcpsendport) |
| Creates an instance with IP address ip and port number port (both are interpreted in host byte order), and sets a specific port to send RTCP packets to (see RTPIPv4Address::GetRTCPSendPort). More...
|
|
void | SetIP (uint32_t ip) |
| Sets the IP address for this instance to ip which is assumed to be in host byte order. More...
|
|
void | SetIP (const uint8_t ip[4]) |
| Sets the IP address of this instance to ip . More...
|
|
void | SetPort (uint16_t port) |
| Sets the port number for this instance to port which is interpreted in host byte order. More...
|
|
uint32_t | GetIP () const |
| Returns the IP address contained in this instance in host byte order. More...
|
|
uint16_t | GetPort () const |
| Returns the port number of this instance in host byte order. More...
|
|
uint16_t | GetRTCPSendPort () const |
| For outgoing packets, this indicates to which port RTCP packets will be sent (can, be the same port as the RTP packets in case RTCP multiplexing is used). More...
|
|
AddressType | GetAddressType () const |
| Returns the type of address the actual implementation represents. More...
|
|
This class is used by the UDP over IPv4 transmission component. When an RTPIPv4Address is used in one of the multicast functions of the transmitter, the port number is ignored. When an instance is used in one of the accept or ignore functions of the transmitter, a zero port number represents all ports for the specified IP address.
jrtplib::RTPIPv4Address::RTPIPv4Address |
( |
uint32_t |
ip = 0 , |
|
|
uint16_t |
port = 0 , |
|
|
bool |
rtcpmux = false |
|
) |
| |
|
inline |
jrtplib::RTPIPv4Address::RTPIPv4Address |
( |
uint32_t |
ip, |
|
|
uint16_t |
port, |
|
|
uint16_t |
rtcpsendport |
|
) |
| |
|
inline |
jrtplib::RTPIPv4Address::RTPIPv4Address |
( |
const uint8_t |
ip[4], |
|
|
uint16_t |
port = 0 , |
|
|
bool |
rtcpmux = false |
|
) |
| |
|
inline |
jrtplib::RTPIPv4Address::RTPIPv4Address |
( |
const uint8_t |
ip[4], |
|
|
uint16_t |
port, |
|
|
uint16_t |
rtcpsendport |
|
) |
| |
|
inline |
uint32_t jrtplib::RTPIPv4Address::GetIP |
( |
| ) |
const |
|
inline |
uint16_t jrtplib::RTPIPv4Address::GetPort |
( |
| ) |
const |
|
inline |
uint16_t jrtplib::RTPIPv4Address::GetRTCPSendPort |
( |
| ) |
const |
|
inline |
void jrtplib::RTPIPv4Address::SetIP |
( |
uint32_t |
ip | ) |
|
|
inline |
void jrtplib::RTPIPv4Address::SetIP |
( |
const uint8_t |
ip[4] | ) |
|
|
inline |
void jrtplib::RTPIPv4Address::SetPort |
( |
uint16_t |
port | ) |
|
|
inline |
The documentation for this class was generated from the following file: