mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
added another ctor to WebSocket
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WebSocket.cpp
|
||||
//
|
||||
// $Id: //poco/1.4/Net/src/WebSocket.cpp#4 $
|
||||
// $Id: //poco/1.4/Net/src/WebSocket.cpp#6 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: WebSocket
|
||||
@@ -79,6 +79,14 @@ WebSocket::WebSocket(HTTPClientSession& cs, HTTPRequest& request, HTTPResponse&
|
||||
}
|
||||
|
||||
|
||||
WebSocket::WebSocket(const Socket& socket):
|
||||
StreamSocket(socket)
|
||||
{
|
||||
if (!dynamic_cast<WebSocketImpl*>(impl()))
|
||||
throw InvalidArgumentException("Cannot assign incompatible socket");
|
||||
}
|
||||
|
||||
|
||||
WebSocket::~WebSocket()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user