Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

RelIfaceMgr.h

Go to the documentation of this file.
00001 /*
00002  * Dibbler - a portable DHCPv6
00003  *
00004  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
00005  *          Marek Senderski <msend@o2.pl>
00006  *
00007  * released under GNU GPL v2 or later licence
00008  *
00009  * $Id: RelIfaceMgr.h,v 1.2 2005/01/11 23:35:22 thomson Exp $
00010  *
00011  * $Log: RelIfaceMgr.h,v $
00012  * Revision 1.2  2005/01/11 23:35:22  thomson
00013  * *** empty log message ***
00014  *
00015  * Revision 1.1  2005/01/11 22:53:35  thomson
00016  * Relay skeleton implemented.
00017  *
00018  *
00019  */
00020 
00021 class TSrvIfaceMgr;
00022 #ifndef RELIFACEMGR_H
00023 #define RELIFACEMGR_H
00024 
00025 #include "RelCommon.h"
00026 #include "RelMsg.h"
00027 #include "IfaceMgr.h"
00028 #include "Iface.h"
00029 
00030 class TRelIfaceMgr: public TIfaceMgr {
00031  public:
00032     TRelIfaceMgr(string xmlFile);
00033     ~TRelIfaceMgr();
00034     friend ostream & operator <<(ostream & strum, TRelIfaceMgr &x);
00035 
00036     SmartPtr<TRelMsg> decodeRelayRepl(SmartPtr<TIfaceIface> iface, 
00037                                       SmartPtr<TIPv6Addr> peer, 
00038                                       char * buf, int bufsize);
00039     SmartPtr<TRelMsg> decodeMsg(SmartPtr<TIfaceIface> iface, 
00040                                 SmartPtr<TIPv6Addr> peer, 
00041                                 char * buf, int bufsize);
00042     
00043     void dump();
00044     
00045     // ---sends messages---
00046     bool send(int iface, char *data, int dataLen, SmartPtr<TIPv6Addr> addr, int port);
00047     
00048     // ---receives messages---
00049     SmartPtr<TRelMsg> select(unsigned long timeout);
00050 
00051   private:
00052     TCtx * Ctx;
00053 };
00054 
00055 #endif 
00056 

Generated on Wed Mar 16 00:10:28 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1