#include <rtpipv4address.h>
Public Member Functions | |
RTPIPv4Address (uint32_t ip=0, uint16_t port=0) | |
Creates an instance with IP address ip and port number port (both are interpreted in host byte order). | |
RTPIPv4Address (const uint8_t ip[4], uint16_t port=0) | |
Creates an instance with IP address ip and port number port (port is interpreted in host byte order). | |
void | SetIP (uint32_t ip) |
Sets the IP address for this instance to ip which is assumed to be in host byte order. | |
void | SetIP (const uint8_t ip[4]) |
Sets the IP address of this instance to ip . | |
void | SetPort (uint16_t port) |
Sets the port number for this instance to port which is interpreted in host byte order. | |
uint32_t | GetIP () const |
Returns the IP address contained in this instance in host byte order. | |
uint16_t | GetPort () const |
Returns the port number of this instance in host byte order. |
RTPIPv4Address::RTPIPv4Address | ( | uint32_t | ip = 0 , |
|
uint16_t | port = 0 | |||
) | [inline] |
RTPIPv4Address::RTPIPv4Address | ( | const uint8_t | ip[4], | |
uint16_t | port = 0 | |||
) | [inline] |
uint32_t RTPIPv4Address::GetIP | ( | ) | const [inline] |
uint16_t RTPIPv4Address::GetPort | ( | ) | const [inline] |
void RTPIPv4Address::SetIP | ( | const uint8_t | ip[4] | ) | [inline] |
void RTPIPv4Address::SetIP | ( | uint32_t | ip | ) | [inline] |
void RTPIPv4Address::SetPort | ( | uint16_t | port | ) | [inline] |