Home > database >  Pb winsock send hexadecimal data?
Pb winsock send hexadecimal data?

Time:09-15

As title, TCP/IP communication how to send the hexadecimal data

CodePudding user response:

Have a great god give directions? Hurry!

CodePudding user response:

Or you will send it according to byte,
Receive the same,
You should either into characters,
0 corresponds to a, 1 corresponding b and so on,

CodePudding user response:

Winsocka. Object. Senddata publishes the event (sle_1. Text), such as sle_1. The values in the text are '01, I use the TCP/IP monitoring tool monitoring data of 30 to issued by 31, if I want to see the data in the TCP/IP for fa 01, the sle_1. What data should be entered in the text?
refer to the second floor ZHGWBZHD response:
or you will send it according to byte,
Receive the same,
You should either into characters,
0 corresponds to a, 1 corresponds to b by analogy,

CodePudding user response:

The question is very difficult to? Pray god guide!!

CodePudding user response:

The problem is not difficult,
You send out the value of the "01", namely characters 0 and 1, his asc code corresponding to the hexadecimal is 0 x30, 0 x31,
Do you want to transfer the character, with a byte,

CodePudding user response:

Into a blob
  • Related