Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (56 sloc) 1.726 kb
* Dibbler - a portable DHCPv6
* authors: Tomasz Mrugalski <>
* Marek Senderski <>
* released under GNU GPL v2 only licence
* $Id: SrvTransMgr.h,v 1.12 2008-10-12 20:10:25 thomson Exp $
#include <string>
#include <vector>
#include "SmartPtr.h"
#include "Container.h"
#include "Opt.h"
#include "SrvMsg.h"
#include "SrvIfaceMgr.h"
#include "SrvCfgIface.h"
#include "SrvAddrMgr.h"
#define SrvTransMgr() (TSrvTransMgr::instance())
class TSrvTransMgr
friend std::ostream & operator<<(std::ostream &strum, TSrvTransMgr &x);
static void instanceCreate(const std::string config);
static TSrvTransMgr &instance();
bool openSocket(SPtr<TSrvCfgIface> confIface);
SPtr<TSrvMsg> getCurrentRequest();
long getTimeout();
void relayMsg(SPtr<TSrvMsg> msg);
void doDuties();
void dump();
bool isDone();
void shutdown();
void removeExpired(std::vector<TSrvAddrMgr::TExpiredInfo>& addrLst,
std::vector<TSrvAddrMgr::TExpiredInfo>& tempAddrLst,
std::vector<TSrvAddrMgr::TExpiredInfo>& prefixLst);
void notifyExpireInfo(TNotifyScriptParams& params, const TSrvAddrMgr::TExpiredInfo& exp,
TAddrIA::TIAType type);
char * getCtrlAddr();
int getCtrlIface();
TSrvTransMgr(std::string xmlFile);
std::string XmlFile;
List(TSrvMsg) MsgLst;
bool IsDone;
int ctrlIface;
char ctrlAddr[48];
SPtr<TSrvMsg> requestMsg; /// @todo: Remove this field and do the REQUEST handling properly
static TSrvTransMgr * Instance;
Jump to Line
Something went wrong with that request. Please try again.