JRTPLIB  3.9.0
Public Member Functions | List of all members
jrtplib::RTPByteAddress Class Reference

A very general kind of address consisting of a port number and a number of bytes describing the host address. More...

#include <rtpbyteaddress.h>

Inheritance diagram for jrtplib::RTPByteAddress:
Inheritance graph
[legend]
Collaboration diagram for jrtplib::RTPByteAddress:
Collaboration graph
[legend]

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. More...
 
void SetHostAddress (const uint8_t hostaddress[RTPBYTEADDRESS_MAXLENGTH], size_t addrlen)
 Sets the host address to the first addrlen bytes of hostaddress. More...
 
void SetPort (uint16_t port)
 Sets the port number to port. More...
 
const uint8_t * GetHostAddress () const
 Returns a pointer to the stored host address. More...
 
size_t GetHostAddressLength () const
 Returns the length in bytes of the stored host address. More...
 
uint16_t GetPort () const
 Returns the port number stored in this instance. More...
 
- Public Member Functions inherited from jrtplib::RTPAddress
AddressType GetAddressType () const
 Returns the type of address the actual implementation represents. More...
 

Additional Inherited Members

- Public Types inherited from jrtplib::RTPAddress
enum  AddressType { IPv4Address, IPv6Address, ByteAddress, UserDefinedAddress }
 Identifies the actual implementation being used. More...
 

Detailed Description

A very general kind of address, consisting of a port number and a number of bytes describing the host address.

Constructor & Destructor Documentation

jrtplib::RTPByteAddress::RTPByteAddress ( const uint8_t  hostaddress[RTPBYTEADDRESS_MAXLENGTH],
size_t  addrlen,
uint16_t  port = 0 
)
inline

Member Function Documentation

const uint8_t* jrtplib::RTPByteAddress::GetHostAddress ( ) const
inline
size_t jrtplib::RTPByteAddress::GetHostAddressLength ( ) const
inline
uint16_t jrtplib::RTPByteAddress::GetPort ( ) const
inline
void jrtplib::RTPByteAddress::SetHostAddress ( const uint8_t  hostaddress[RTPBYTEADDRESS_MAXLENGTH],
size_t  addrlen 
)
inline
void jrtplib::RTPByteAddress::SetPort ( uint16_t  port)
inline

The documentation for this class was generated from the following file: