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

@ -12,7 +12,7 @@
#include <iostream>
#include <string>
#include <TCPConsole.hpp>
#include "TCPConsole.hpp"
using boost::asio::steady_timer;
using boost::asio::ip::tcp;
@ -20,6 +20,18 @@ using boost::asio::ip::tcp;
namespace Slic3r {
namespace Utils {
const char* default_newline = "\n";
const char* default_done_string = "ok";
TCPConsole::TCPConsole() : resolver_(io_context_), socket_(io_context_), newline_(default_newline), done_string_(default_done_string) {}
TCPConsole::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);
}
void TCPConsole::transmit_next_command()
{
if (cmd_queue_.empty()) {