Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptAddr.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  * Marek Senderski <msend@o2.pl>
6  *
7  * released under GNU GPL v2 licence
8  *
9  * $Id: OptAddr.h,v 1.1 2004-10-26 22:36:57 thomson Exp $
10  *
11  * $Log: not supported by cvs2svn $
12  * Revision 1.2 2004/09/05 15:27:49 thomson
13  * Data receive switched from recvfrom to recvmsg, unicast partially supported.
14  *
15  *
16  */
17 
18 #ifndef OPTSERVERUNICAST_H
19 #define OPTSERVERUNICAST_H
20 
21 #include "Opt.h"
22 #include "SmartPtr.h"
23 #include "IPv6Addr.h"
24 
25 class TOptAddr : public TOpt
26 {
27  public:
28  TOptAddr(int type, const char * buf, unsigned short len, TMsg* parent);
29  TOptAddr(int type, SPtr<TIPv6Addr> addr, TMsg * parent);
30  size_t getSize();
31  char * storeSelf( char* buf);
33  virtual bool doDuties() { return true; } // does nothing on its own
34  std::string getPlain();
35  protected:
37 };
38 
39 #endif
40