size_t size = data.size();
if (libtcp_send(tx_pool[mac], &size, sizeof(size_t)) != sizeof(size_t))
throw std::runtime_error("Error al enviar por el socket");
- if ((unsigned)libtcp_send(tx_pool[mac], data.c_str(), data.size()) != data.size())
+ if ((unsigned)libtcp_send(tx_pool[mac], data.data(), data.size()) != data.size())
throw std::runtime_error("Error al enviar por el socket");
#ifdef DEBUG2
std::cout << "DevTCP::transmit(mac = " << mac << ", size = "