mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-24 18:41:54 -06:00
Multiple fixes for building
This commit is contained in:
parent
f1ae74f9d3
commit
bb928f6ef7
4 changed files with 21 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue