i want use tcpsocket send a uchar data,, but there is no function conversion uchar to
i want use tcpsocket send a uchar data,, but there is no function conversion uchar to QByteArray
how can i use qtcpsocket send const unsigned char* src data ?
conversion to
QByteArray ?
QChar ?
Code:
this->tcpSocket->connectToHost("192.168.0.111",8888);
connect(this->tcpSocket,SIGNAL(connected()),this,(sendData()));
sendData function
{
const unsigned char* src = some unsigned char data
this->tcpSocket->write(?,size) ?
}
Re: i want use tcpsocket send a uchar data,, but there is no function conversion ucha
Re: i want use tcpsocket send a uchar data,, but there is no function conversion ucha
tcpSocket->write((char*)src, size);