//TODO: implement correct sending (remote call api) void Connection::writeToServer(const Net::Packet& packet) { std::string str = packet.getString(); socket.write(str.c_str(), str.size()); }
void Connection::writePacket(const Net::Packet& packet) { std::string str = packet.getString(); sendBuffer.append(str.c_str(), str.size()); }