#include "CrealityPrint.hpp"
#include <algorithm>
#include <boost/asio/io_context.hpp>
#include <boost/beast/websocket/stream.hpp>
#include <boost/beast/core/tcp_stream.hpp>
#include <boost/beast/core/stream_traits.hpp>
#include <chrono>
#include <boost/beast/websocket/stream_base.hpp>
#include <boost/beast/websocket/rfc6455.hpp>
#include <boost/beast/http/field.hpp>
#include <boost/beast/version.hpp>
#include <boost/asio/buffer.hpp>
#include <boost/beast/core/flat_buffer.hpp>
#include <boost/beast/core/error.hpp>
#include <boost/beast/core/buffers_to_string.hpp>
#include <map>
#include <unordered_set>
#include <sstream>
#include <exception>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
#include <boost/log/trivial.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/asio.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/nowide/convert.hpp>
#include <curl/curl.h>
#include <utility>
#include <vector>
#include <wx/progdlg.h>
#include "PrintHost.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/format.hpp"
#include "AsioUtils.hpp"
#include "Http.hpp"
#include "libslic3r/AppConfig.hpp"
#include "slic3r/GUI/BonjourDialog.hpp"
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <cstdlib>
#include <iostream>
#include <string>
#include <fstream>
#include <nlohmann/json.hpp>
#include <wx/string.h>
Go to the source code of this file.
|
| namespace | Slic3r |
| | |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
|
|
| using | tcp = boost::asio::ip::tcp |
|
| static void | Slic3r::ws_connect (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, const std::string &host_url, const std::string &port, std::chrono::milliseconds timeout) |
| static beast::error_code | Slic3r::ws_write (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, const std::string &text) |
| static void | Slic3r::ws_send (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, const json &cmd) |
| static beast::error_code | Slic3r::ws_read (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, beast::flat_buffer &buffer) |
| static std::string | Slic3r::ws_send_and_read (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, const json &cmd, const std::string &expected_key, int max_reads=20) |
| static void | Slic3r::ws_close (net::io_context &ioc, websocket::stream< beast::tcp_stream > &ws, std::chrono::milliseconds timeout) |
| static bool | Slic3r::is_k1_family (const std::string &model) |
| static const std::map< std::string, std::string > & | Slic3r::cfs_capable_models () |
◆ tcp
| using tcp = boost::asio::ip::tcp |