/* * Copyright (c) 2011 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #include #include #include namespace Swift { TLSConnectionFactory::TLSConnectionFactory(TLSContextFactory* contextFactory, ConnectionFactory* connectionFactory) : contextFactory(contextFactory), connectionFactory(connectionFactory){ } TLSConnectionFactory::~TLSConnectionFactory() { } boost::shared_ptr TLSConnectionFactory::createConnection() { return boost::make_shared(connectionFactory->createConnection(), contextFactory); } }