Hi
I'm trying to send a hex stream on a client socket and despite converting the ouput to hex it still appears on the wire as the ascii code of the character that is sent.
I.e. I send 0005 and from wireshark I see 30 30 30 35 - What I need is 00 05
I have done a 'format %x $var' to conver to hex but I think I will need to set some parameter on the client socket to stop it converting to ascii.
Does anyone know how to 'fconfiure' the socket to get my required result.
Thanks
I'm trying to send a hex stream on a client socket and despite converting the ouput to hex it still appears on the wire as the ascii code of the character that is sent.
I.e. I send 0005 and from wireshark I see 30 30 30 35 - What I need is 00 05
I have done a 'format %x $var' to conver to hex but I think I will need to set some parameter on the client socket to stop it converting to ascii.
Does anyone know how to 'fconfiure' the socket to get my required result.
Thanks