#include <NetAddress.hh>
Public Member Functions | |
| NetAddress (u_int8_t const *data, unsigned length=4) | |
| NetAddress (unsigned length=4) | |
| NetAddress (NetAddress const &orig) | |
| NetAddress & | operator= (NetAddress const &rightSide) |
| virtual | ~NetAddress () |
| unsigned | length () const |
| u_int8_t const * | data () const |
Private Member Functions | |
| void | assign (u_int8_t const *data, unsigned length) |
| void | clean () |
Private Attributes | |
| unsigned | fLength |
| u_int8_t * | fData |
Definition at line 41 of file NetAddress.hh.
| NetAddress::NetAddress | ( | u_int8_t const * | data, | |
| unsigned | length = 4 | |||
| ) |
| NetAddress::NetAddress | ( | unsigned | length = 4 |
) |
| NetAddress::NetAddress | ( | NetAddress const & | orig | ) |
| NetAddress::~NetAddress | ( | ) | [virtual] |
| NetAddress & NetAddress::operator= | ( | NetAddress const & | rightSide | ) |
| unsigned NetAddress::length | ( | ) | const [inline] |
Definition at line 50 of file NetAddress.hh.
References fLength.
Referenced by NetAddress(), and operator=().
00050 { return fLength; }
| u_int8_t const* NetAddress::data | ( | ) | const [inline] |
Definition at line 51 of file NetAddress.hh.
References fData.
Referenced by MediaSubsession::connectionEndpointAddress(), getSDPDescription(), main(), NetAddress(), RTSPClient::openConnection(), operator=(), ourIPAddress(), parseSourceFilterAttribute(), SIPClient::processURL(), and DarwinInjector::setDestination().
00052 { return fData; }
| void NetAddress::assign | ( | u_int8_t const * | data, | |
| unsigned | length | |||
| ) | [private] |
Definition at line 67 of file NetAddress.cpp.
References fData, fLength, and NULL.
Referenced by NetAddress(), and operator=().
00067 { 00068 fData = new u_int8_t[length]; 00069 if (fData == NULL) { 00070 fLength = 0; 00071 return; 00072 } 00073 00074 for (unsigned i = 0; i < length; ++i) fData[i] = data[i]; 00075 fLength = length; 00076 }
| void NetAddress::clean | ( | ) | [private] |
Definition at line 78 of file NetAddress.cpp.
References fData, fLength, and NULL.
Referenced by operator=(), and ~NetAddress().
unsigned NetAddress::fLength [private] |
Definition at line 58 of file NetAddress.hh.
Referenced by assign(), clean(), length(), and NetAddress().
u_int8_t* NetAddress::fData [private] |
Definition at line 59 of file NetAddress.hh.
Referenced by assign(), clean(), data(), and NetAddress().
1.5.2