void write(const WsControlPacket &packet) { assert(outSock); QByteArray buf = TnetString::fromVariant(packet.toVariant()); log_debug("wscontrol: OUT %s", buf.data()); outSock->write(QList<QByteArray>() << buf); }
void write(const WsControlPacket &packet) { assert(outSock); QVariant vpacket = packet.toVariant(); QByteArray buf = TnetString::fromVariant(vpacket); if(log_outputLevel() >= LOG_LEVEL_DEBUG) log_debug("wscontrol: OUT %s", qPrintable(TnetString::variantToString(vpacket, -1))); outSock->write(QList<QByteArray>() << buf); }