namespace netconf {
ControlSocketBasePtr
-createControlSocket(CfgControlSocketPtr ctrl_sock) {
+controlSocketFactory(CfgControlSocketPtr ctrl_sock) {
if (!ctrl_sock) {
isc_throw(BadValue, "null control socket configuration");
}
/// @param ctrl_sock The control socket configuration.
/// @return A pointer to a control socket communication object.
/// @throw NotImplemented if no specialization was called.
-template <CfgControlSocket::Type TYPE> ControlSocketBasePtr
+template <CfgControlSocket::Type TYPE> ControlSocketBasePtr
createControlSocket(CfgControlSocketPtr ctrl_sock) {
isc_throw(NotImplemented, "not specialized createControlSocket");
}
/// @return A pointer to a control socket communication object.
/// @throw BadValue if called with null or an unknown type.
ControlSocketBasePtr
-createControlSocket(CfgControlSocketPtr ctrl_sock);
+controlSocketFactory(CfgControlSocketPtr ctrl_sock);
} // namespace netconf
} // namespace isc
}
ControlSocketBasePtr comm;
try {
- comm = createControlSocket(ctrl_sock);
+ comm = controlSocketFactory(ctrl_sock);
} catch (const std::exception& ex) {
ostringstream msg;
msg << "createControlSocket failed with " << ex.what();
}
ControlSocketBasePtr comm;
try {
- comm = createControlSocket(ctrl_sock);
+ comm = controlSocketFactory(ctrl_sock);
} catch (const std::exception& ex) {
ostringstream msg;
msg << "control socket creation failed with " << ex.what();
}
ControlSocketBasePtr comm;
try {
- comm = createControlSocket(ctrl_sock);
+ comm = controlSocketFactory(ctrl_sock);
} catch (const std::exception& ex) {
ostringstream msg;
msg << "createControlSocket failed with " << ex.what();
// the server.
ControlSocketBasePtr comm;
try {
- comm = createControlSocket(ctrl_sock);
+ comm = controlSocketFactory(ctrl_sock);
} catch (const std::exception& ex) {
ostringstream msg;
msg << "createControlSocket failed with " << ex.what();