File Information
Library: WebTunnel
Package: WebTunnel
Header: Poco/WebTunnel/LocalPortForwarder.h
Description
The DefaultWebSocketFactory uses the Poco::Net::HTTPSessionFactory to create the Poco::Net::HTTPClientSession, and sets up the Poco::Net::HTTPRequest for HTTP Basic authentication using the given username and password. If the username is empty, no authentication is used.
Inheritance
Direct Base Classes: WebSocketFactory
All Base Classes: WebSocketFactory
Member Summary
Member Functions: createWebSocket
Inherited Functions: createWebSocket
Constructors
DefaultWebSocketFactory
Creates the DefaultWebSocketFactory with no credentials.
DefaultWebSocketFactory
DefaultWebSocketFactory(
const std::string & username,
const std::string & password,
Poco::Timespan timeout = Poco::Timespan (30, 0)
);
Creates the DefaultWebSocketFactory using the given username and password.
Destructor
~DefaultWebSocketFactory
Destroys the DefaultWebSocketFactory.
Member Functions
createWebSocket
Poco::Net::WebSocket * createWebSocket(
const Poco::URI & uri,
Poco::Net::HTTPRequest & request,
Poco::Net::HTTPResponse & response
);