0

How the data is actually sent over the network. I know it is transmitted in Hex but is the raw hex equivalent for the data sent?

I mean if i wanted to send a simple ASCII text "hello" , is the hex equivalent of 'h' 'e' 'l' 'l' 'o' is sent or does it do any encoding or encryption.

also would it do 'zip' kind of thing.. i mean would it find the 2 'l's in "hello" and some way send any equivalent for that?

george
  • 127
  • 2
  • 5

1 Answers1

3

It is not sent in hex. It is sent in binary. Period. No encoding. No encryption. No zipping. What you send is what it sends.

user207421
  • 305,947
  • 44
  • 307
  • 483
  • @slebetman The point of your comment escapes me. The OP didn't say anything about words, and neither did I. – user207421 Dec 15 '15 at 06:04
  • I was generalizing what you said. In computers, there is no such thing as a "string". The string "hello" is merely a piece of binary data that we choose to interpret in such a way that represents the word "hello" to us. It could also be interpreted as a single 40-bit number. The computer doesn't care. All there is is binary. Everything else is how we choose to interpret things. – slebetman Dec 15 '15 at 06:47
  • FWIW, the ASCII string "hello" if interpreted as a 40-bit number is four hundred and forty eight billion, three hundred and seventy eight million, two hundred and three thousand, two hundred forty seven (448378203247 or 0x68656c6c6f). – slebetman Dec 15 '15 at 06:50