I have a data coming from a server on a TCP Connection and the data comes in network byte order.
is there any specific class in Qt that performs this conversion or should i use the native ntohs() methods of linux.
i tried using the native method call but that doesnot give any change!
can anyone please enlighten me on this....
struct{
quint16 i;
}
tcp->read((char*)i,sizeof(i));
ntohs(i);
struct{
quint16 i;
}
tcp->read((char*)i,sizeof(i));
ntohs(i);
To copy to clipboard, switch view to plain text mode
i am working in QT4.2.2 Red Hat Linux
Bookmarks