Hi there
I am developing an aplication on VB6 with Winsock control.
It works this way.
I make a "listener" for the port 8300 of the server, wich is the machine y I am running the application.
When the data arrives, I diplay it on a textbox, in order to see what the client is sending.
The point is the client side is sending a paquet (which i CAN´T modificate) like this.
$$ + W + NUM (7byte) + command (2byte) + DATA + COMP(2byte) + \r\n
Wich means
$$ - is the beginning of the paquet
W - It has the Length of the paquet, an it on HEX
NUM - Is an Identifier (Number) of the client wich can be 7 bytes long and is sent on HEX form.
"The client.- the manufacturer claims that if the NUM contains a number like this 13612345678, it will show on the server side something like this: 0x13,0x61,0x023,0x45,0x67,0x8f,0xff"
The rest of the paquet .....
command, DATA or COMP area arriving as it should.
The Problem is that on the applications which is the server side i am receiving something like this.
$$VU%qˆÿÿ™U "DATA OMITTED" |0.8|2379|0000n¤
As you can see the $$ is arriving as the manufacturer claims it will arrive.
But the W or the NUM iit is showing weird values like VU%qˆÿÿ™U.
I think WINSOCK is deducing that the data is on HEX format and because the WINSOCK control only receive string or byte etc.... is twisting the HEX format.. (Well I think).
I would love to be able to read all the paquet as it should.
Please any help will be great.
I am developing an aplication on VB6 with Winsock control.
It works this way.
I make a "listener" for the port 8300 of the server, wich is the machine y I am running the application.
When the data arrives, I diplay it on a textbox, in order to see what the client is sending.
The point is the client side is sending a paquet (which i CAN´T modificate) like this.
$$ + W + NUM (7byte) + command (2byte) + DATA + COMP(2byte) + \r\n
Wich means
$$ - is the beginning of the paquet
W - It has the Length of the paquet, an it on HEX
NUM - Is an Identifier (Number) of the client wich can be 7 bytes long and is sent on HEX form.
"The client.- the manufacturer claims that if the NUM contains a number like this 13612345678, it will show on the server side something like this: 0x13,0x61,0x023,0x45,0x67,0x8f,0xff"
The rest of the paquet .....
command, DATA or COMP area arriving as it should.
The Problem is that on the applications which is the server side i am receiving something like this.
$$VU%qˆÿÿ™U "DATA OMITTED" |0.8|2379|0000n¤
As you can see the $$ is arriving as the manufacturer claims it will arrive.
But the W or the NUM iit is showing weird values like VU%qˆÿÿ™U.
I think WINSOCK is deducing that the data is on HEX format and because the WINSOCK control only receive string or byte etc.... is twisting the HEX format.. (Well I think).
I would love to be able to read all the paquet as it should.
Please any help will be great.