|
SNode.C
|
#include <SocketContextUpgradeFactorySelector.h>
Classes | |
| struct | SocketContextPlugin |
Public Types | |
| using | SocketContextUpgradeFactory = SocketContextUpgradeFactoryT |
| using | Request = typename SocketContextUpgradeFactory::Request |
| using | Response = typename SocketContextUpgradeFactory::Response |
Public Member Functions | |
| virtual SocketContextUpgradeFactory * | select (Request &req, Response &res)=0 |
| bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
| void | link (const std::string &socketContextUpgradeName, SocketContextUpgradeFactory *(*linkedPlugin)()) |
| void | allowDlOpen () |
| void | unload (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
Protected Member Functions | |
| SocketContextUpgradeFactorySelector ()=default | |
| virtual | ~SocketContextUpgradeFactorySelector ()=default |
| SocketContextUpgradeFactory * | select (const std::string &socketContextUpgradeName) |
| virtual SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName)=0 |
| SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName, const std::string &socketContextUpgradeFactoryLibraryFile, const std::string &socketContextUpgradeFactoryFunctionName) |
| bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory, void *handler) |
Private Attributes | |
| std::map< std::string, SocketContextPlugin > | socketContextUpgradePlugins |
| std::map< std::string, SocketContextUpgradeFactory *(*)()> | linkedSocketContextUpgradePlugins |
| bool | onlyLinked = false |
Definition at line 57 of file SocketContextUpgradeFactorySelector.h.
| using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::Request = typename SocketContextUpgradeFactory::Request |
Definition at line 60 of file SocketContextUpgradeFactorySelector.h.
| using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::Response = typename SocketContextUpgradeFactory::Response |
Definition at line 61 of file SocketContextUpgradeFactorySelector.h.
| using web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::SocketContextUpgradeFactory = SocketContextUpgradeFactoryT |
Definition at line 59 of file SocketContextUpgradeFactorySelector.h.
|
protecteddefault |
|
protectedvirtualdefault |
| bool web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::add | ( | SocketContextUpgradeFactory * | socketContextUpgradeFactory | ) |
Definition at line 73 of file SocketContextUpgradeFactorySelector.hpp.
|
protected |
Definition at line 60 of file SocketContextUpgradeFactorySelector.hpp.
References web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::socketContextUpgradePlugins.
| void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::allowDlOpen | ( | ) |
Definition at line 78 of file SocketContextUpgradeFactorySelector.hpp.
References web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::onlyLinked.
| void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::link | ( | const std::string & | socketContextUpgradeName, |
| SocketContextUpgradeFactory *(*)() | linkedPlugin | ||
| ) |
Definition at line 139 of file SocketContextUpgradeFactorySelector.hpp.
References web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::linkedSocketContextUpgradePlugins, and web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::onlyLinked.
Referenced by web::http::client::SocketContextUpgradeFactory::link(), and web::http::server::SocketContextUpgradeFactory::link().
|
protectedpure virtual |
|
protected |
Definition at line 84 of file SocketContextUpgradeFactorySelector.hpp.
|
protected |
Definition at line 123 of file SocketContextUpgradeFactorySelector.hpp.
References web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::linkedSocketContextUpgradePlugins, web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::onlyLinked, and web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::socketContextUpgradePlugins.
Referenced by web::http::client::SocketContextUpgradeFactorySelector::select(), web::http::client::SocketContextUpgradeFactorySelector::select(), and web::http::server::SocketContextUpgradeFactorySelector::select().
|
pure virtual |
| void web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactory >::unload | ( | SocketContextUpgradeFactory * | socketContextUpgradeFactory | ) |
Definition at line 150 of file SocketContextUpgradeFactorySelector.hpp.
References core::DynamicLoader::dlCloseDelayed(), and web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::socketContextUpgradePlugins.
Referenced by web::http::client::SocketContextUpgradeFactory::checkRefCount(), and web::http::server::SocketContextUpgradeFactory::checkRefCount().
|
private |
|
private |
Definition at line 99 of file SocketContextUpgradeFactorySelector.h.
Referenced by web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::allowDlOpen(), web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::link(), and web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::select().
|
private |
Definition at line 96 of file SocketContextUpgradeFactorySelector.h.
Referenced by web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::add(), web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::select(), and web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::unload().