Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TOptDomainLst Class Reference

#include <OptDomainLst.h>

+ Inheritance diagram for TOptDomainLst:
+ Collaboration diagram for TOptDomainLst:

Public Member Functions

 TOptDomainLst (int type, List(std::string) strLst, TMsg *parent)
 TOptDomainLst (int type, const std::string &domain, TMsg *parent)
 TOptDomainLst (int type, const char *buf, unsigned short bufsize, TMsg *parent)
int countString ()
bool doDuties ()
const std::string & getDomain ()
virtual std::string getPlain ()
size_t getSize ()
const List (std::string)&getDomainLst()
char * storeSelf (char *buf)
- Public Member Functions inherited from TOpt
 TOpt (int optType, TMsg *parent)
virtual ~TOpt ()
void addOption (TOptPtr opt)
int countOption ()
void delAllOptions ()
bool delOption (uint16_t type)
 Deletes all specified options of that type.
void firstOption ()
TOptPtr getOption (int type)
TOptPtr getOption ()
int getOptType ()
virtual bool isValid () const
void setParent (TMsg *Parent)

Protected Member Functions

 List (std::string) StringLst
- Protected Member Functions inherited from TOpt
int getSubOptSize ()
char * storeHeader (char *buf)
char * storeSubOpt (char *buf)

Additional Inherited Members

- Public Types inherited from TOpt
enum  EOptionLayout {
  Layout_Addr, Layout_AddrLst, Layout_String, Layout_StringLst,
  Layout_Duid, Layout_Generic
- Static Public Member Functions inherited from TOpt
static TOptPtr getOption (const TOptList &list, uint16_t opt_type)
static bool parseOptions (TOptContainer &options, const char *buf, size_t len, TMsg *parent, uint16_t placeId=0, std::string place="option")
 Parses options or suboptions, creates appropriate objects and store them in options container.
- Static Public Attributes inherited from TOpt
static const size_t OPTION6_HDR_LEN = 4
 length of a DHCPv6 option header
- Protected Attributes inherited from TOpt
int OptType
TOptContainer SubOptions
bool Valid

Constructor & Destructor Documentation

TOptDomainLst::TOptDomainLst ( int  type,
List(std::string)  strLst,
TMsg parent 
TOptDomainLst::TOptDomainLst ( int  type,
const std::string &  domain,
TMsg parent 
TOptDomainLst::TOptDomainLst ( int  type,
const char *  buf,
unsigned short  bufsize,
TMsg parent 

Member Function Documentation

int TOptDomainLst::countString ( )
bool TOptDomainLst::doDuties ( )

Implements TOpt.

const std::string & TOptDomainLst::getDomain ( )
std::string TOptDomainLst::getPlain ( )

Reimplemented from TOpt.

size_t TOptDomainLst::getSize ( )

Return the size of the option, including :

  • Option number,
  • Option size
  • data
the size

Implements TOpt.

const TOptDomainLst::List ( std::string  )
TOptDomainLst::List ( std::string  )
char * TOptDomainLst::storeSelf ( char *  buf)

This method transform the instance of the option class into bytecode ready to be sent to the client or server, conform to the RFC

bufThe address where to store the option
The address where the option ends

Implements TOpt.

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