|
JRTPLIB
3.11.2 (development version)
|
A very general kind of address consisting of a port number and a number of bytes describing the host address. More...
#include <rtpbyteaddress.h>


Public Member Functions | |
| RTPByteAddress (const uint8_t hostaddress[RTPBYTEADDRESS_MAXLENGTH], size_t addrlen, uint16_t port=0) | |
Creates an instance of the class using addrlen bytes of hostaddress as host identification, and using port as the port number. | |
| void | SetHostAddress (const uint8_t hostaddress[RTPBYTEADDRESS_MAXLENGTH], size_t addrlen) |
Sets the host address to the first addrlen bytes of hostaddress. | |
| void | SetPort (uint16_t port) |
Sets the port number to port. | |
| const uint8_t * | GetHostAddress () const |
| Returns a pointer to the stored host address. | |
| size_t | GetHostAddressLength () const |
| Returns the length in bytes of the stored host address. | |
| uint16_t | GetPort () const |
| Returns the port number stored in this instance. | |
Public Member Functions inherited from jrtplib::RTPAddress | |
| AddressType | GetAddressType () const |
| Returns the type of address the actual implementation represents. | |
Additional Inherited Members | |
Public Types inherited from jrtplib::RTPAddress | |
| enum | AddressType { IPv4Address , IPv6Address , ByteAddress , UserDefinedAddress , TCPAddress } |
| Identifies the actual implementation being used. More... | |
A very general kind of address, consisting of a port number and a number of bytes describing the host address.