Skip to content

Commit 417319d

Browse files
Nijat KNijat K
authored andcommitted
Try to fix Windows build error
Signed-off-by: Nijat K <[email protected]>
1 parent 9b82506 commit 417319d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cpp/csp/adapters/websocket/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
csp_autogen( csp.adapters.websocket_types websocket_types WEBSOCKET_HEADER WEBSOCKET_SOURCE )
22

33
set(WS_CLIENT_HEADER_FILES
4-
ClientConnectionRequestAdapter.h
54
ClientAdapterManager.h
65
ClientInputAdapter.h
76
ClientOutputAdapter.h
87
ClientHeaderUpdateAdapter.h
8+
ClientConnectionRequestAdapter.h
99
WebsocketEndpoint.h
1010
${WEBSOCKET_HEADER}
1111
)
1212

1313
set(WS_CLIENT_SOURCE_FILES
14-
ClientConnectionRequestAdapter.cpp
1514
ClientAdapterManager.cpp
1615
ClientInputAdapter.cpp
1716
ClientOutputAdapter.cpp
1817
ClientHeaderUpdateAdapter.cpp
18+
ClientConnectionRequestAdapter.cpp
1919
WebsocketEndpoint.cpp
2020
${WS_CLIENT_HEADER_FILES}
2121
${WEBSOCKET_SOURCE}

cpp/csp/adapters/websocket/ClientAdapterManager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <csp/adapters/websocket/ClientAdapterManager.h>
2-
#include <boost/system/error_code.hpp>
32
#include <iostream>
43

54
namespace csp {
@@ -297,7 +296,7 @@ void ClientAdapterManager::handleEndpointFailure(const std::string& endpoint_id,
297296

298297
// Schedule reconnection attempt
299298
config.reconnect_timer->expires_after(config.reconnect_interval);
300-
config.reconnect_timer->async_wait([this, endpoint_id](const boost::system::error_code& ec) {
299+
config.reconnect_timer->async_wait([this, endpoint_id](const error_code& ec) {
301300
boost::asio::post(m_ioc, [this, endpoint_id]() {
302301
if (auto it = m_endpoints.find(endpoint_id);
303302
it != m_endpoints.end()) {

cpp/csp/adapters/websocket/ClientConnectionRequestAdapter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <csp/adapters/websocket/ClientConnectionRequestAdapter.h>
22
#include <csp/python/Conversions.h>
3-
#include <iostream>
43
#include <Python.h>
54

65
namespace csp::adapters::websocket {

cpp/csp/adapters/websocket/WebsocketEndpoint.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <boost/beast/websocket.hpp>
77
#include <boost/asio/strand.hpp>
88
#include <boost/asio/error.hpp>
9+
#include <boost/system/error_code.hpp>
910

1011
#include <csp/engine/Dictionary.h>
1112
#include <csp/core/Exception.h>
@@ -24,6 +25,7 @@ namespace net = boost::asio; // from <boost/asio.hpp>
2425
namespace ssl = boost::asio::ssl; // from <boost/asio/ssl.hpp>
2526
namespace websocket = beast::websocket; // from <boost/beast/websocket.hpp>
2627
using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
28+
using error_code = boost::system::error_code; //from <boost/system/error_code.hpp>
2729

2830
using string_cb = std::function<void(const std::string&)>;
2931
using char_cb = std::function<void(void*, size_t)>;

0 commit comments

Comments
 (0)