summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/client_ws.hpp5
-rw-r--r--src/lib/util/client_wss.hpp7
-rw-r--r--src/lib/util/server_ws.hpp8
-rw-r--r--src/lib/util/server_wss.hpp5
4 files changed, 24 insertions, 1 deletions
diff --git a/src/lib/util/client_ws.hpp b/src/lib/util/client_ws.hpp
index 52f294bc983..f3c4ded6bb2 100644
--- a/src/lib/util/client_ws.hpp
+++ b/src/lib/util/client_ws.hpp
@@ -507,6 +507,11 @@ namespace webpp {
});
}
};
+
+ class ws_client : public SocketClient<WS> {
+ public:
+ explicit ws_client(const std::string& server_port_path) : SocketClient<WS>::SocketClient(server_port_path) {}
+ };
}
#endif /* CLIENT_WS_HPP */
diff --git a/src/lib/util/client_wss.hpp b/src/lib/util/client_wss.hpp
index ae00c0346cb..ef30b459607 100644
--- a/src/lib/util/client_wss.hpp
+++ b/src/lib/util/client_wss.hpp
@@ -70,6 +70,13 @@ namespace webpp {
});
}
};
+
+ class wss_client : public SocketClient<WSS> {
+ public:
+ explicit wss_client(const std::string& server_port_path, bool verify_certificate = true,
+ const std::string& cert_file = std::string(), const std::string& private_key_file = std::string(),
+ const std::string& verify_file = std::string()) : SocketClient<WSS>::SocketClient(server_port_path, verify_certificate, cert_file, private_key_file, verify_file) {}
+ };
}
#endif /* CLIENT_WSS_HPP */
diff --git a/src/lib/util/server_ws.hpp b/src/lib/util/server_ws.hpp
index 94437026196..170dc31ae63 100644
--- a/src/lib/util/server_ws.hpp
+++ b/src/lib/util/server_ws.hpp
@@ -64,6 +64,7 @@ namespace webpp {
}
};
+
class Connection {
friend class SocketServerBase<socket_type>;
friend class SocketServer<socket_type>;
@@ -141,7 +142,7 @@ namespace webpp {
catch (...) {}
}
};
-
+
class Message : public std::istream {
friend class SocketServerBase<socket_type>;
@@ -704,5 +705,10 @@ namespace webpp {
});
}
};
+
+ class ws_server : public SocketServer<WS> {
+ public:
+ ws_server() : SocketServer<WS>::SocketServer() {}
+ };
}
#endif /* SERVER_WS_HPP */
diff --git a/src/lib/util/server_wss.hpp b/src/lib/util/server_wss.hpp
index 000c00bf83d..ecf46fb1524 100644
--- a/src/lib/util/server_wss.hpp
+++ b/src/lib/util/server_wss.hpp
@@ -70,6 +70,11 @@ namespace webpp {
});
}
};
+
+ class wss_server : public SocketServer<WSS> {
+ public:
+ wss_server(const std::string& cert_file, const std::string& private_key_file,const std::string& verify_file = std::string()) : SocketServer<WSS>::SocketServer(cert_file, private_key_file, verify_file) {}
+ };
}