| 2014 | } |
| 2015 | |
| 2016 | inline int Communication::send(const char* msg, size_t length) |
| 2017 | { |
| 2018 | if (stream_->input() == nullptr) return -1; |
| 2019 | return std::fwrite(msg, sizeof(char), length, stream_->input()); |
| 2020 | } |
| 2021 | |
| 2022 | inline int Communication::send(const std::vector<char>& msg) |
| 2023 | { |