Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can we send data as hex from qt udp socket
I am sending string data from socket->writedatagram it was converting to hex.Can we send data in hex then it will send data in decimal.can anyone plz help me .
@Sowjanya Sorry, can you please explain what you want to do? What kind of data do you send?
@jsulm Thanks for replying,
Like this i am sending data ,while in recieving part it was showing hexa data
please first make sure you have a working understanding of the subject you're trying to do.
What do you think it's actually transmitted via a UDP socket !?
hex / decimal is just an other (re) interpretation of the underlying data structure. And only something that humans concerns themself with.
How did you determine that you got hexadecimal on the receiving end ?
If you used qDebug for that know that it will output the ASCII chars you send but will show the code points if you have UTF-8 characters.
I got to know that in wireshark