45 lines
991 B
C++

//----------------------------------------------------------------------------
//
// Copyright (C) Intel Corporation, 2006 - 2007.
//
// File: MPS_Class.h
//
// Contents: A singelton class which holds some of the MPS needed objects
// such as the acceptor and connector,
// initializes them, and provide access to them.
//
// Notes:
//----------------------------------------------------------------------------
#ifndef MPS_CLASS_H
#define MPS_CLASS_H
#include "SocksSvcHandler.h"
#include "TunnelHandler.h"
#include "acceptor.h"
// A singelton class which holds all the formats, initializes them, and provide access to them
class MPS_Class
{
public:
// Return pointer to Singleton.
static MPS_Class * instance();
// Dtor
~MPS_Class() {}
Acceptor<Socks_Svc_Handler> _socks_acceptor;
Acceptor<AMT_Tunnel_Handler> _amt_acceptor;
private:
// private ctor
MPS_Class() {}
// ConfigFormats Singleton instance.
static MPS_Class * _instance;
};
#endif