Multiple fixes for building

This commit is contained in:
Sergey Kovalev 2020-12-29 01:12:04 +07:00
parent f1ae74f9d3
commit bb928f6ef7
4 changed files with 21 additions and 14 deletions

View file

@ -10,21 +10,13 @@
namespace Slic3r {
namespace Utils {
const char* default_newline = "\n";
const char* default_done_string = "ok";
using boost::asio::ip::tcp;
class TCPConsole
{
public:
TCPConsole() : resolver_(io_context_), socket_(io_context_), newline_(default_newline), done_string_(default_done_string) {}
TCPConsole(const std::string& host_name, const std::string& port_name) :
resolver_(io_context_), socket_(io_context_), newline_(default_newline), done_string_(default_done_string)
{
set_remote(host_name, port_name);
}
TCPConsole();
TCPConsole(const std::string& host_name, const std::string& port_name);
~TCPConsole() {}
void set_line_delimiter(const std::string& newline) {