Multiple fixes for building
This commit is contained in:
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user