net7/trunk/Net7Proxy/ConnectionManager.h
2014-05-11 16:54:16 -04:00

45 lines
912 B
C++

// ConnectionManager.h
#ifndef _CONNECTION_MANAGER_H_INCLUDED_
#define _CONNECTION_MANAGER_H_INCLUDED_
#include "Mutex.h"
class Connection;
class SSL_Connection;
class ConnectionManager
{
public:
ConnectionManager();
virtual ~ConnectionManager();
public:
//void AddSslConnection(SSL_Connection *ssl_connection);
void AddConnection(Connection *tcp_connection);
void CheckConnections();
void CheckSslConnections();
private:
// linked list for SSL Connection
/* struct SslConnectionEntry;
struct SslConnectionEntry
{
SSL_Connection * connection;
struct SslConnectionEntry * next;
};*/
// linked list for TCP Connection
struct ConnectionEntry;
struct ConnectionEntry
{
Connection * connection;
struct ConnectionEntry * next;
};
private:
Mutex m_Mutex;
//SslConnectionEntry * m_SslConnectionList;
ConnectionEntry * m_ConnectionList;
};
#endif // _CONNECTION_MANAGER_H_INCLUDED_